KevaTeam / ctf-attack-defense

Attack-defense platform
GNU General Public License v3.0
25 stars 6 forks source link

Debian problem with init #11

Open sea-kg opened 8 years ago

sea-kg commented 8 years ago
root@920b4e9b3175:~# python3 main.py init
Connect to localhost:27017
Removing old data ... 
Traceback (most recent call last):
  File "main.py", line 63, in <module>
    parser.parse_args().func(parser.parse_args())
  File "main.py", line 21, in init
    Initialize(db, config)
  File "/root/classes/initialize.py", line 24, in __init__
    self.delete_old_data()
  File "/root/classes/initialize.py", line 32, in delete_old_data
    self.db.teams.delete_many({})
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 1709, in __call__
    self.__name.split(".")[-1])
TypeError: 'Collection' object is not callable. If you meant to call the 'delete_many' method on a 'Collection' object it is failing because no such method exists.