Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturVinicius authored Dec 9, 2024
1 parent 4d17192 commit 1f1b90c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sonar_scripts/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Variáveis globais ao repositório
OWNER = "fga-eps-mds"
REPO = "2024.1-UnB-TV-Frontend"
REPO = "2024.2-UnB-TV-Frontend"
TODAY = datetime.now()

# Configurar as variáveis de ambiente
Expand Down Expand Up @@ -88,15 +88,15 @@ def create_release():

if __name__ == '__main__':

REPO = "2024.1-UnB-TV-Frontend"
REPO = "2024.2-UnB-TV-Frontend"

_, tag = create_release()

response = requests.get(f'{BASE_URL}{REPO}&metricKeys={",".join(METRICS_SONAR)}&ps=500')
j = json.loads(response.text)

file_path = f'./analytics-raw-data/fga-eps-mds-2024-1-UnBTV-Frontend-{TODAY.strftime("%m-%d-%Y-%H-%M-%S")}-{tag}.json'
file_path = f'./analytics-raw-data/fga-eps-mds-2024-2-UnBTV-Frontend-{TODAY.strftime("%m-%d-%Y-%H-%M-%S")}-{tag}.json'

with open(file_path, 'w') as fp:
fp.write(json.dumps(j))
fp.close()
fp.close()

0 comments on commit 1f1b90c

Please sign in to comment.