passphera-core 0.12.0__tar.gz → 0.12.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: passphera-core
3
- Version: 0.12.0
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
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: passphera-core
3
- Version: 0.12.0
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
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name='passphera-core',
8
- version='0.12.0',
8
+ version='0.12.1',
9
9
  author='Fathi Abdelmalek',
10
10
  author_email='abdelmalek.fathi.2001@gmail.com',
11
11
  url='https://github.com/passphera/core',