Commit Graph

14 Commits

Author SHA1 Message Date
6358a3db9b Check if file was changed before upload
Use sha1 hash of file, which is available via FileInfo() to check for
changes
2018-09-24 20:32:36 +02:00
3a46ea8ddc Add update frequenzy in days to job
Check against timestamp of latest file revision
2018-09-24 20:31:07 +02:00
e874804591 Store current job in bot object
For not having to provide it for each dependend method as param
2018-09-24 20:26:50 +02:00
776950d990 Use UploadRobot directly from pywikibot.specialbots
Remove unneccessary import roundtrip via pywikibot/scripts/upload
2018-09-24 20:24:27 +02:00
93827e9f3b Log if new input file is downloaded 2018-09-24 20:23:36 +02:00
206917ed6d Implement file upload 2018-09-21 21:02:39 +02:00
b14c0fa3a7 Set correct mtime of zip file
Since we are writing the zip file with python, the original mdate, on
which is_zip_uptodate() relies gets lost. Therefore overwrite it with
value of "Last-Modified" HTTP header
2018-09-21 20:37:42 +02:00
111fc38881 Filenames for gnuplot via env-vars
To not have hardcoded filenames in gnuplot script

https://wiki.ubuntuusers.de/Gnuplot/#Stapelverarbeitung-Zugriff-auf-Umgebungsvariablen
2018-09-21 18:04:19 +02:00
ad325a0afe Implement basic gnuplot call 2018-09-21 17:57:39 +02:00
d2aa47899a First steps of job handling 2018-09-21 17:17:38 +02:00
5dd52e3ac5 Implement download, extracting and update of data
Make sure we have always the most recent data version
2018-09-21 15:52:21 +02:00
29c5d725f1 Add initialisation of working dir 2018-09-21 13:45:09 +02:00
506400a528 Basic structure for jogobot bot 2018-09-21 13:16:09 +02:00
e2f57dc670 Basic structure, init repo 2018-09-21 13:14:49 +02:00