-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lotta progress with historical import
- Loading branch information
Showing
7 changed files
with
203 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
open/core/migrations/0020_supplementlog_duration_minutes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.13 on 2020-08-19 15:23 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0019_dailyproductivitylog_mistakes"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="supplementlog", | ||
name="duration_minutes", | ||
field=models.PositiveIntegerField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import pandas as pd | ||
|
||
|
||
def change_dataframe_nans_to_none(df): | ||
df = df.where(pd.notnull(df), None) | ||
return df |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
-r ./base.txt | ||
Collectfast==1.0.0 # https://github.com/antonagestam/collectfast | ||
django-anymail[mailgun]==7.0.0 # https://github.com/anymail/django-anymail | ||
|
||
# Django | ||
# ------------------------------------------------------------------------------ | ||
django-storages[google]==1.9.1 # https://github.com/jschneier/django-storages | ||
|
||
gunicorn==20.0.4 # https://github.com/benoitc/gunicorn | ||
psycopg2==2.8.3 --no-binary psycopg2 # https://github.com/psycopg/psycopg2 |