aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-16 13:41:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-16 13:41:56 -0300
commit906d4c7ac7fb77bdc2b926d77de73504cb452c53 (patch)
tree6c66a3c2ab2ed88425c6af1eb386c6096faf56eb
parent2dac4ff339598de6e3cb7ea489d8ad1de5b19b29 (diff)
downloadckandumper-906d4c7ac7fb77bdc2b926d77de73504cb452c53.tar.gz
ckandumper-906d4c7ac7fb77bdc2b926d77de73504cb452c53.tar.bz2
Record download date
-rwxr-xr-xckandumper5
1 files changed, 5 insertions, 0 deletions
diff --git a/ckandumper b/ckandumper
index 7502afc..0ec60d5 100755
--- a/ckandumper
+++ b/ckandumper
@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Dependencies
+import datetime
import asyncio
import argparse
import sys, os, json
@@ -88,6 +89,10 @@ class DownloadMultiple:
output.write(str(proc.returncode) + '\n')
output.close()
+ output = open(local_filename + '.date', 'w')
+ output.write(str(datetime.datetime.now()) + '\n')
+ output.close()
+
if not str(proc.returncode) in self.globalstats['exitstatus']:
self.globalstats['exitstatus'][str(proc.returncode)] = []