Skip to content

Commit

Permalink
modified: cogs/dvp.py
Browse files Browse the repository at this point in the history
	modified:   requirements.txt
  • Loading branch information
Revulate committed Oct 15, 2024
1 parent defc9ef commit daeca0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cogs/dvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ async def update_game_data(self, game_name, time_played):
)
await db.commit()

@retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=10))
async def update_google_sheet(self):
creds = Credentials.from_service_account_file(
self.creds_file, scopes=["https://www.googleapis.com/auth/spreadsheets"]
Expand Down Expand Up @@ -403,6 +404,7 @@ async def update_google_sheet(self):
self.logger.info("Google Sheet updated successfully.")
except HttpError as error:
self.logger.error(f"An error occurred while updating the Google Sheet: {error}")
raise

async def apply_sheet_formatting(self, service, data_row_count):
try:
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit daeca0d

Please sign in to comment.