diff --git a/README.md b/README.md index 3a91c5a..61b23b8 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ It allows you to: * [Discovering Automatically Published Products](#discovering-automatically-published-products) - [Setting Up Your Development Environment](#setting-up-your-development-environment) - [The Graphic User Interface](#the-graphic-user-interface) +- [Who Uses LycheePy?](#who-uses-lycheepy) - [Ideas](#ideas) @@ -1235,6 +1236,17 @@ And now you're able to use your LycheePy instance. LycheePy also has a web client! You you can find [here](https://github.com/gabrielbazan/lycheepy.cli). +## Who Uses LycheePy? + + + + + + + +Do you use it? Add yourself! :) + + ## Ideas Feel free to contribute, or come up with some ideas! diff --git a/lycheepy/configuration/configuration/validators/repository.py b/lycheepy/configuration/configuration/validators/repository.py index 8df2a66..febc32e 100644 --- a/lycheepy/configuration/configuration/validators/repository.py +++ b/lycheepy/configuration/configuration/validators/repository.py @@ -16,10 +16,11 @@ def validate_type(data, instance): if instance: if type_name and type_name != instance.type.name: raise Conflict('The repository type cannot be changed') - repository_type = instance.type.name + repository_type = instance.type else: if not type_name: raise Conflict('Please, specify the repository type') + repository_type = RepositoryType.query.filter_by(name=type_name).one_or_none() if not repository_type: