Skip to content

Commit

Permalink
limit increase
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 committed Feb 17, 2024
1 parent 3256ccc commit 7621a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def post(self, request, *args, **kwargs):

def form_valid(self, form):
user_or_ip = self.request.user.get_username() if self.request.user.is_authenticated else get_client_ip(self.request)
limit = 2 if self.request.user.is_authenticated else 5 # Your set limits
limit = 50 if self.request.user.is_authenticated else 30 # Your set limits
cache_key = f"issue_create_{user_or_ip}_{now().date()}"
issue_count = cache.get(cache_key, 0)

Expand Down

0 comments on commit 7621a70

Please sign in to comment.