Skip to content

Commit

Permalink
fix: foundry last_modified_characters_sync should be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
ishtanzar committed Feb 2, 2024
1 parent f3cf0c3 commit cd92f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wm-worker/src/services/foundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def fetch_pcs(self, ids=[]):
self._logger.debug(f'GET {resp.url} - {resp.status_code}')
return resp.json()['actors']

async def list_modified_characters(self, last_sync: str = None) -> list:
async def list_modified_characters(self, last_sync: str | int = None) -> list:
modified = set()
query_from = 0
query_size = 1000
Expand Down Expand Up @@ -89,7 +89,7 @@ async def cron(self):
for actor in characters:
await self.index_actor(actor)

self._cache["last_modified_characters_sync"] = str(new_sync.int_timestamp)
self._cache["last_modified_characters_sync"] = new_sync.int_timestamp

async def reindex_actors(self):
for actor in await self.fetch_pcs():
Expand Down

0 comments on commit cd92f15

Please sign in to comment.