Skip to content

Commit 32a066f

Browse files
committed
Merge remote-tracking branch 'A-atmos/enhance-redis-database' into a-atmos-enhance-redis-database
# Conflicts: # slips_files/core/database/_profile_flow.py # slips_files/core/database/database.py
2 parents c48096c + 2e8a949 commit 32a066f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slips_files/core/database/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ def get_the_other_ip_version(self, profileid):
724724
def getProfileIdFromIP(self, daddr_as_obj):
725725
"""Receive an IP and we want the profileid"""
726726
try:
727-
profileid = f'{self.prefix}_profile{self.separator}{str(daddr_as_obj)}'
728-
if self.r.sismember(self.prefix + self.separator + 'profiles', profileid):
727+
profileid = f'profile{self.separator}{str(daddr_as_obj)}'
728+
if data := self.r.sismember('profiles', profileid):
729729
return profileid
730730
return False
731731
except redis.exceptions.ResponseError as inst:

0 commit comments

Comments
 (0)