Commit b48ddaeb authored by Maxime Emschwiller's avatar Maxime Emschwiller
Browse files

style: fix styling issues

parent f5a3df2c
...@@ -60,14 +60,10 @@ def stats(request): ...@@ -60,14 +60,10 @@ def stats(request):
if dataset == "daily_connections": if dataset == "daily_connections":
daily_connections = DailyConnections.objects.filter( daily_connections = DailyConnections.objects.filter(
date__gte=now_minus_365_days, date__gte=now_minus_365_days, date__lt=now
date__lt=now,
) )
raw_data = [ raw_data = [
{ {"date": dc.date.strftime("%Y-%m-%d"), "nb_connections": dc.nb_connections}
"date": dc.date.strftime("%Y-%m-%d"),
"nb_connections": dc.nb_connections
}
for dc in daily_connections for dc in daily_connections
] ]
...@@ -75,8 +71,7 @@ def stats(request): ...@@ -75,8 +71,7 @@ def stats(request):
elif dataset == "daily_exchange_contributions": elif dataset == "daily_exchange_contributions":
daily_contributions = DailyExchangeContributionsInfo.objects.filter( daily_contributions = DailyExchangeContributionsInfo.objects.filter(
date__gte=now_minus_365_days, date__gte=now_minus_365_days, date__lt=now
date__lt=now,
).prefetch_related("university") ).prefetch_related("university")
raw_data = [ raw_data = [
......
...@@ -6,12 +6,12 @@ In `frontend/src/utils/majorMinorMappings.js`, each change has to be added as a ...@@ -6,12 +6,12 @@ In `frontend/src/utils/majorMinorMappings.js`, each change has to be added as a
```js ```js
export const majorMapping = { export const majorMapping = {
oldMajorName: "newMajorName" oldMajorName: "newMajorName",
}; };
export const minorMapping = { export const minorMapping = {
majorName: { majorName: {
oldMinorName: "newMinorName" oldMinorName: "newMinorName",
} },
}; };
``` ```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment