Skip to content

Commit

Permalink
Update Factorio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 17, 2024
1 parent 5d18f18 commit ba617d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocols/Factorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def __init__(self) -> None:
super().__init__('Factorio')

def create_index(self):
self.collection.create_index('server_id')
self.collection.create_index('host_address')

def job(self):
Expand Down Expand Up @@ -63,7 +62,7 @@ def _upsert_bulk_write(self, server_list: list):
# Prepare the updates
updates = [
UpdateOne(
{'server_id': server['server_id']},
{'host_address': server_list['host_address']},
{
'$set': server,
'$currentDate': {'_last_modified': True},
Expand Down

0 comments on commit ba617d3

Please sign in to comment.