Skip to content

Commit

Permalink
Merge pull request #236 from Guts/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
Guts authored Oct 3, 2023
2 parents c26eac2 + 9cb10b5 commit ce3c537
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
language: python
Expand Down
2 changes: 0 additions & 2 deletions elgeopaso/jobs/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ def conditional_cache(decorator):
"""Returns decorated view if user is not admin. Un-decorated otherwise"""

def _decorator(view):

# This holds the view with cache decorator
decorated_view = decorator(view)

def _view(request, *args, **kwargs):

if request.user.is_staff: # If user is staff
return view(request, *args, **kwargs) # view without @cache
else:
Expand Down
1 change: 0 additions & 1 deletion elgeopaso/jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ class Meta:


class Offer(models.Model):

# timestamps
created = models.DateTimeField("Ajoutée le", auto_now_add=True)
updated = models.DateTimeField("Modifiée le", auto_now=True)
Expand Down
1 change: 1 addition & 0 deletions elgeopaso/jobs/templatetags/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# #################################
register = template.Library()


# ###########################################################################
# ####### Template tags ###########
# #################################
Expand Down

0 comments on commit ce3c537

Please sign in to comment.