aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/globeop.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/globeop.py b/python/globeop.py
index b3b60c80..a5afbe3e 100644
--- a/python/globeop.py
+++ b/python/globeop.py
@@ -16,12 +16,12 @@ group.add_argument("-d", "--download", action="store_true",
help="download reports from GlobeOp")
group.add_argument("-u", "--upload", action="store_true",
help="upload marks to GlobeOp")
-parser.add_argument("date", nargs='?', type=lambda s: datetime.datetime.strptime(s, "%Y-%m-%d").date(),
- default=datetime.date.today())
+parser.add_argument("date", nargs='?', type=lambda s: datetime.datetime.strptime(s, "%Y-%m-%d"),
+ default=datetime.datetime.today())
args = parser.parse_args()
if args.download:
- download_data(args.date)
+ download_data(args.date.date())
elif args.upload:
engine = create_engine('postgresql://dawn_user@debian/dawndb')
upload_data(engine, args.date)