diff options
Diffstat (limited to 'python/globeop.py')
| -rw-r--r-- | python/globeop.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/globeop.py b/python/globeop.py index e0c56fbb..b3b60c80 100644 --- a/python/globeop.py +++ b/python/globeop.py @@ -1,6 +1,6 @@ import logging import argparse -import pandas as pd +import datetime from task_server.globeop import download_data, upload_data from sqlalchemy import create_engine @@ -16,8 +16,8 @@ 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: pd.datetime.strptime(s, "%Y-%m-%d"), - default=pd.datetime.today()) +parser.add_argument("date", nargs='?', type=lambda s: datetime.datetime.strptime(s, "%Y-%m-%d").date(), + default=datetime.date.today()) args = parser.parse_args() if args.download: |
