mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
V5.1.0
This commit is contained in:
@@ -272,14 +272,14 @@ class Defender():
|
||||
return False
|
||||
|
||||
def reputation_insert(self, reputationModel: ReputationModel) -> bool:
|
||||
|
||||
|
||||
response = False
|
||||
|
||||
# Check if the user already exist
|
||||
for reputation in self.UID_REPUTATION_DB:
|
||||
if reputation.uid == reputationModel.uid:
|
||||
return response
|
||||
|
||||
|
||||
self.UID_REPUTATION_DB.append(reputationModel)
|
||||
self.Logs.debug(f'Reputation inserted: {reputationModel}')
|
||||
response = True
|
||||
|
||||
Reference in New Issue
Block a user