Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
alexafshar authored Nov 18, 2022
1 parent ce75a4c commit e90cecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions backend/api/appd/AppDService.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,9 +988,8 @@ async def getSyntheticSessionData(self, applicationId: int, jobsJson: List[dict]
# get the last 24 hours in milliseconds
lastMonth = self.endTime - (1 * 60 * 60 * 24 * 30 * 1000)
monthStart = datetime.timestamp(datetime.today().replace(day=1, hour=0, minute=0, second=0, microsecond=0))
ws = (date.today() - timedelta(date.today().weekday()))
weekStart = datetime.timestamp(
datetime.today().replace(year=ws.year, month=ws.month, day=ws.day, hour=0, minute=0, second=0, microsecond=0))
ws = date.today() - timedelta(date.today().weekday())
weekStart = datetime.timestamp(datetime.today().replace(year=ws.year, month=ws.month, day=ws.day, hour=0, minute=0, second=0, microsecond=0))
body = {
"appId": applicationId,
"scheduleIds": jobsJson,
Expand Down
2 changes: 1 addition & 1 deletion backend/util/excel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def writeUncoloredRow(sheet: Worksheet, rowIdx: int, data: [Any]):
sheet[f"{colIdx}{rowIdx}"] = cell
except IllegalCharacterError:
logging.warning(f"illegal character detected in cell, will scrub {cell}")
cell = ILLEGAL_CHARACTERS_RE.sub(r'', cell)
cell = ILLEGAL_CHARACTERS_RE.sub(r"", cell)
logging.warning(f"scrubbed cell: {cell}")
sheet[f"{colIdx}{rowIdx}"] = cell

Expand Down

0 comments on commit e90cecf

Please sign in to comment.