Compare commits

..

17 Commits

Author SHA1 Message Date
justuser-31 08fdd1b8de Update README.md 2025-11-12 07:45:34 +00:00
justuser-31 2299ebb239 Убран print() в лимите по IP 2025-11-11 19:38:27 +03:00
justuser-31 4407afcc18 Лимит запросов по IP, мелкие правки 2025-11-11 19:36:48 +03:00
justuser-31 4241a20926 id -> invoice_id 2025-11-11 15:09:54 +03:00
justuser-31 7214981aff id -> invoice_id 2025-11-11 15:07:37 +03:00
justuser-31 c2add43dd5 id -> invoice_id 2025-11-11 15:04:44 +03:00
justuser-31 ec25c4add8 Больше комментариев 2025-11-09 14:24:27 +03:00
justuser-31 602d40be59 Исправление бага: await token_check 2025-11-07 22:52:31 +03:00
justuser-31 11ab54ad46 Исправление бага: token_check -> False/True вместо ответа SystemAPI 2025-11-07 20:48:06 +03:00
justuser-31 849ad4b2d4 Добавление синхронной версии вызовов API, ещё комментарии и упрощение 2025-11-02 19:42:04 +03:00
justuser-31 3aa4f7206d Логирование использования токенов и мелкие доработки. 2025-11-02 16:16:28 +03:00
justuser-31 641b179cd0 Реализация работы с invoice 2025-11-02 14:04:51 +03:00
justuser-31 2bb21e4ee4 Базовая реализация UserAPI 2025-11-02 12:18:27 +03:00
justuser-31 a50d1056eb Update README.md 2025-08-21 09:53:00 +00:00
justuser-31 b56867246b up 2025-08-21 12:52:01 +03:00
justuser-31 d7e2bfb80e Update LICENSE 2025-08-17 10:29:35 +00:00
justuser-31 3d51dae4e3 Initial commit 2025-08-17 10:23:51 +00:00
3 changed files with 2 additions and 7 deletions
-3
View File
@@ -1,3 +0,0 @@
nohup.out
config.json
database.db
+2 -3
View File
@@ -73,9 +73,8 @@ class UserRateLimiter:
# Log the IP and request count # Log the IP and request count
request_count = len(self.ip_requests[ip]) request_count = len(self.ip_requests[ip])
# Return True if rate limit exceeded (more than 62 requests per minute) # Return True if rate limit exceeded (more than 30 requests per minute)
# Request every second + 10 for sure return request_count > 30
return request_count > 70
# Global instance # Global instance
rate_limiter = UserRateLimiter() rate_limiter = UserRateLimiter()
-1
View File
@@ -1 +0,0 @@
pytz