Broke the consumer script into separate files and started on a mail consumer

This commit is contained in:
Daniel Quinn
2016-01-30 01:18:52 +00:00
parent 84d5f8cc5d
commit a70b40f618
8 changed files with 378 additions and 230 deletions

View File

@@ -47,7 +47,7 @@ class Command(BaseCommand):
self._render("Exporting: {}".format(target), 1)
with open(target, "wb") as f:
f.write(GnuPG.decrypted(document.pdf))
f.write(GnuPG.decrypted(document.source_file))
t = int(time.mktime(document.created.timetuple()))
os.utime(target, times=(t, t))