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 3f09c30 commit 75efebb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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-Admin"
REPO = "2024.2-UnB-TV-Admin"
TODAY = datetime.now()

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

if __name__ == '__main__':

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

_, 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-Admin-{TODAY.strftime("%m-%d-%Y-%H-%M-%S")}-{tag}.json'
file_path = f'./analytics-raw-data/fga-eps-mds-2024-2-UnBTV-Admin-{TODAY.strftime("%m-%d-%Y-%H-%M-%S")}-{tag}.json'

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

0 comments on commit 75efebb

Please sign in to comment.