Skip to content

Commit e5aeb52

Browse files
committed
Merge branch 'stable'
2 parents 1d69bcf + 710b398 commit e5aeb52

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

app/passport_score/gr15_scorer.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import datar.all as r
21
# delay import as this is only available in celery envs
32
import pandas as pd
4-
from datar.core.factory import func_factory
53

64

7-
@func_factory("agg", "x")
8-
def my_paste(x):
9-
return ", ".join(x)
5+
def compute_apu_scores(
6+
gc, stamp_field_names, grouping_fieldnames, grouping_fieldnames_1
7+
):
8+
import datar.all as r
9+
from datar.core.factory import func_factory
1010

11+
@func_factory("agg", "x")
12+
def my_paste(x):
13+
return ", ".join(x)
1114

12-
@func_factory("agg", "x")
13-
def my_len(x):
14-
return len(x)
1515

16+
@func_factory("agg", "x")
17+
def my_len(x):
18+
return len(x)
1619

17-
@func_factory("agg", "x")
18-
def my_head(x, n=1):
19-
return x[0:n]
2020

21+
@func_factory("agg", "x")
22+
def my_head(x, n=1):
23+
return x[0:n]
2124

22-
def compute_apu_scores(
23-
gc, stamp_field_names, grouping_fieldnames, grouping_fieldnames_1
24-
):
2525
grouping_fields = [r.f[fieldname] for fieldname in grouping_fieldnames]
2626
grouping_fields_1 = [r.f[fieldname] for fieldname in grouping_fieldnames_1]
2727
stamp_fields = [r.f[fieldname] for fieldname in stamp_field_names]

requirements/base.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,3 @@ unidecode==1.2.0
121121
drf-flex-fields==0.9.1
122122
pandas==1.1.5
123123
django-svg-image-form-field==1.0.1
124-
datar==0.8.6
125-
pdtypes==0.0.4

requirements/test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ ipfshttpclient==0.6.0
1818
dj_static==0.0.6
1919
livereload==2.6.3
2020
didkit==0.2.1
21+
datar==0.8.6
22+
pdtypes==0.0.4

scripts/deploy.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ git add .
4444
git stash
4545

4646
# If no $BRANCH is specified, it will use the current one
47+
echo "- checkout $BRANCH"
4748
git checkout "$BRANCH"
48-
git pull origin "$BRANCH"
49+
echo "- fetch"
50+
git fetch origin $BRANCH
51+
echo "- reset to origin/$BRANCH"
52+
git reset --hard "origin/$BRANCH"
4953

5054
# deploy hooks
5155
echo "- install req"

0 commit comments

Comments
 (0)