Skip to content

Commit

Permalink
Atualizando SonarCloud parser
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoGurgel authored Oct 19, 2023
1 parent 68bbb19 commit d43bb5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import requests
import sys
from datetime import datetime
import pytz

TODAY = datetime.now()
desired_timezone = pytz.timezone('America/Sao_Paulo')

TODAY = datetime.now(desired_timezone)

METRICS_SONAR = [
"files",
Expand Down Expand Up @@ -31,7 +34,7 @@
f'{BASE_URL}{REPO}&metricKeys={",".join(METRICS_SONAR)}&ps=500'
)
j = json.loads(response.text)

file_path = f'./analytics-raw-data/fga-eps-mds-{REPO}-{TODAY.strftime("%m-%d-%Y-%H-%M-%S")}-{RELEASE_VERSION}.json'

with open(file_path, "w") as fp:
Expand Down

0 comments on commit d43bb5f

Please sign in to comment.