From 9e21b79f65f5fef313648b95ccb68d3d8ff784ad Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 5 Apr 2022 10:20:27 -0700 Subject: [PATCH] Add operatornotify. --- pixelcanvas.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pixelcanvas.py b/pixelcanvas.py index bb3c981..e16e222 100644 --- a/pixelcanvas.py +++ b/pixelcanvas.py @@ -8,6 +8,7 @@ import sqlite3 import sys import time +from voussoirkit import operatornotify from voussoirkit import threadpool from voussoirkit import vlogging @@ -431,6 +432,7 @@ def overview_argparse(args): for column in row: print(column, end='') print() + return 0 def render_argparse(args): coordinates = parse_coordinate_string(args.coordinates) @@ -454,6 +456,7 @@ def render_argparse(args): filename = f'{p1x}.{p1y}--{p2x}.{p2y}{scale_s}.png' image.save(filename) log.debug('Wrote %s', filename) + return 0 def update_argparse(args): coordinates = parse_coordinate_string(args.coordinates) @@ -466,7 +469,9 @@ def update_argparse(args): insert_chunks(chunks) except KeyboardInterrupt: db_commit() + return 0 +@operatornotify.main_decorator(subject='pixelcanvasdl') @vlogging.main_decorator def main(argv): parser = argparse.ArgumentParser(