passphera-core 0.11.1__py3-none-any.whl → 0.12.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ class GeneratePasswordUseCase:
16
16
 
17
17
  def execute(self, generator_id: UUID, context: str, text: str) -> Password:
18
18
  password_entity: Password = self.password_repository.get_by_context(context)
19
- if password_entity:
19
+ if password_entity and password_entity.deleted_at is not None:
20
20
  raise DuplicatePasswordException(password_entity)
21
21
  generator_entity: Generator = self.generator_repository.get(generator_id)
22
22
  password: str = generator_entity.generate_password(text)
@@ -14,6 +14,7 @@ class Password:
14
14
  id: UUID = field(default_factory=uuid4)
15
15
  created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
16
16
  updated_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
17
+ deleted_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
17
18
  context: str = field(default_factory=str)
18
19
  text: str = field(default_factory=str)
19
20
  password: str = field(default_factory=str)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: passphera-core
3
- Version: 0.11.1
3
+ Version: 0.12.1
4
4
  Summary: The core system of passphera project
5
5
  Home-page: https://github.com/passphera/core
6
6
  Author: Fathi Abdelmalek
@@ -1,11 +1,11 @@
1
1
  passphera_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- passphera_core/entities.py,sha256=n93z53GfQdiVRekyzRQ-xZQNKhfbA7WvWkUmtK7ZXWA,4241
2
+ passphera_core/entities.py,sha256=OvVU6HzWF0GWElq_VFU-GUyittaOf5x8yMHYlAjemsE,4326
3
3
  passphera_core/exceptions.py,sha256=Xir2lYIH7QYHfjDQu8WJ9qIhCvP-mYcPWYN2LbbbDj8,640
4
4
  passphera_core/interfaces.py,sha256=HF4g115Rz1sp9-cRDpdOqkZ1ixhrNg1WI2UNftuEykI,911
5
5
  passphera_core/application/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  passphera_core/application/generator.py,sha256=ljbPw3nRy6KOsF0B_zkILJqx2uMcSgT66YKJBHxvDwo,2491
7
- passphera_core/application/password.py,sha256=Y_XnoTGS6QHeIPHDCvfj8cscaMyDkflYexE8dkLVUW0,3496
8
- passphera_core-0.11.1.dist-info/METADATA,sha256=ixkf06A0-FBsGpy6HTUT5qxpyx892mQ6VxluK7VREGc,868
9
- passphera_core-0.11.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
10
- passphera_core-0.11.1.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
11
- passphera_core-0.11.1.dist-info/RECORD,,
7
+ passphera_core/application/password.py,sha256=YPnNTgBHclvsq88ZfbJMn5VHol8YizCYE-9Mv3MwTlU,3539
8
+ passphera_core-0.12.1.dist-info/METADATA,sha256=jxLK_bFVJjp0bEFAYKAqbga6AL9zBRLU3MBIIODAsBw,868
9
+ passphera_core-0.12.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
10
+ passphera_core-0.12.1.dist-info/top_level.txt,sha256=aDUX2iWGOyfzyf6XakLWTbgeWqNrypMHO074Qratyds,15
11
+ passphera_core-0.12.1.dist-info/RECORD,,