diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-01 22:09:56 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-01 22:09:56 +0000 |
commit | 442646901a7a7e4da45b46cb52b34f2128509840 (patch) | |
tree | 0a42553f91cfc323e392811333c025a1db14fafa /kpov_judge/rm_task.py | |
parent | 5f5fe80b0c5b0f23c21e08bc37570fb3e52acdaf (diff) |
Fixed the write_default_config script.
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@353 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/rm_task.py')
-rwxr-xr-x | kpov_judge/rm_task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/rm_task.py b/kpov_judge/rm_task.py index e724d68..ebdadc6 100755 --- a/kpov_judge/rm_task.py +++ b/kpov_judge/rm_task.py @@ -17,7 +17,7 @@ if __name__ == '__main__': print u"Usage: {0} [task_name]".format(sys.argv[0]) exit(1) task_id = sys.argv[1] - db = pymongo.Connection(settings.DB_HOST).kpov + db = pymongo.MongoClient(settings.DB_HOST).kpov try: db.authenticate(settings.USERNAME, settings.PASSWORD) except Exception, e: |