Skip to content

Commit

Permalink
ignore mobile_app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrymailk committed Nov 7, 2021
1 parent 9e43525 commit 3ddad23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,7 @@ target/
__pycache__/
local_settings.py
eng_env/
.env
.env

## Custom Files
mobile_app/*
3 changes: 2 additions & 1 deletion server/main/english_learn/select_learn/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def get(self, request):
user_id = request.user.id
sql_str = f"""select * from public.select_learn_userword
where ('2.72'::real ^ -((SELECT EXTRACT(epoch FROM (now() - updated_at::timestamptz)))/3600::real / strength)) < 0.5
and user_id = {user_id} or trials = 0 and user_id = {user_id} limit 20;"""
and user_id = {user_id} or
trials = 0 and user_id = {user_id} limit 20;"""
words = UserWord.objects.raw(sql_str)
# print(words)
words = UserWordSerializer(words, many=True).data
Expand Down

0 comments on commit 3ddad23

Please sign in to comment.