Skip to content

Commit

Permalink
deps: update + Django: 4 + deprecation: removal 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Niush committed Feb 14, 2022
1 parent 29fbf3e commit 85ae1c3
Show file tree
Hide file tree
Showing 11 changed files with 216 additions and 208 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mkdocs = "*"
numpy = "*"
opencv-python = "*"
pillow = "*"
pipenv = "*"
pipenv = "~=2022.1.8"
requests = "*"
virtualenv = "*"
whitenoise = "*"
Expand Down
393 changes: 201 additions & 192 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions api/templates/add_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
{% for object_type in object_types %}
<option
{% if 'object_type_id' in request.GET %}
{% ifequal request.GET.object_type_id object_type.id|stringformat:"i" %}
{% if request.GET.object_type_id == object_type.id|stringformat:"i" %}
selected="selected"
{% endifequal %}
{% endif %}
{% endif %}
value="{{object_type.id}}" title="{% if object_type.verified %}Has Been Verified{% endif %}">{{object_type.name|title}}{% if object_type.verified %} ✅{% endif %}</option>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ def terminal(request):
# Special Commands
original_cmd = cmd
if cmd == 'server.log':
cmd = "tail -n 250 /var/log/messages | grep 'gunicorn\|python3'"
cmd = "tail -n 250 /var/log/messages | grep -E 'gunicorn|python3'"

res = ''
err = ''
Expand Down
4 changes: 2 additions & 2 deletions crowdsource/templates/crowdsource_images.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
{% endif %}

{% for num in crowdsources.paginator.page_range %}
{% ifequal num crowdsources.number %}
{% if num == crowdsources.number %}
<li class="paginate_button page-item active"><a href="#" class="page-link">{{num}}</a></li>
{% else %}
<li class="paginate_button page-item"><a href="?page={{ num }}" class="page-link">{{num}}</a></li>
{% endifequal %}
{% endif %}
{% endfor %}

{% if crowdsources.has_next %}
Expand Down
4 changes: 2 additions & 2 deletions crowdsource/templates/images_share.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
{% endif %}

{% for num in images_share.paginator.page_range %}
{% ifequal num images_share.number %}
{% if num == images_share.number %}
<li class="paginate_button page-item active"><a href="#" class="page-link">{{num}}</a></li>
{% else %}
<li class="paginate_button page-item"><a href="?page={{ num }}" class="page-link">{{num}}</a></li>
{% endifequal %}
{% endif %}
{% endfor %}

{% if images_share.has_next %}
Expand Down
4 changes: 1 addition & 3 deletions isac_simo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
env.read_env(env.str('ENV_PATH', '.env'))
from django.utils.translation import gettext_lazy as _

VERSION = '1.4.0'
VERSION = '1.4.1'

TESTING = len(sys.argv) > 1 and sys.argv[1] == 'test'

Expand Down Expand Up @@ -179,8 +179,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
Expand Down
1 change: 1 addition & 0 deletions main/syslogger/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def error_dashboard(request):
f = open('{}/errors.log'.format(file[0]), "r")
list_items = f.read().split('\nERROR ')
args = {'result': list_items}
f.close();
return render(request, "syslogs.html", args)


Expand Down
2 changes: 1 addition & 1 deletion main/translator/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import re_path
from django.urls import re_path
from django.urls import reverse_lazy
from django.views.generic.base import RedirectView

Expand Down
4 changes: 2 additions & 2 deletions projects/templates/contribution_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@
{% endif %}

{% for num in contributions.paginator.page_range %}
{% ifequal num contributions.number %}
{% if num == contributions.number %}
<li class="paginate_button page-item active"><a href="#" class="page-link">{{num}}</a></li>
{% else %}
<li class="paginate_button page-item"><a href="?page={{ num }}" class="page-link">{{num}}</a></li>
{% endifequal %}
{% endif %}
{% endfor %}

{% if contributions.has_next %}
Expand Down
4 changes: 2 additions & 2 deletions projects/templates/public_projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
{% endif %}

{% for num in projects.paginator.page_range %}
{% ifequal num projects.number %}
{% if num == projects.number %}
<li class="paginate_button page-item active"><a href="#" class="page-link">{{num}}</a></li>
{% else %}
<li class="paginate_button page-item"><a href="?page={{ num }}" class="page-link">{{num}}</a></li>
{% endifequal %}
{% endif %}
{% endfor %}

{% if projects.has_next %}
Expand Down

0 comments on commit 85ae1c3

Please sign in to comment.