Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 04070d465ee8329d82add3dd5db58c726f6f2a37 Author: Valentin Gologuzov vgologuz@redhat.com Date: Thu Dec 11 14:25:46 2014 +0100
[frontend] api workaround: removed auto_createrepo option
.../coprs/views/api_ns/api_general.py | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/views/api_ns/api_general.py b/frontend/coprs_frontend/coprs/views/api_ns/api_general.py index 409598d..ceca86a 100644 --- a/frontend/coprs_frontend/coprs/views/api_ns/api_general.py +++ b/frontend/coprs_frontend/coprs/views/api_ns/api_general.py @@ -83,18 +83,6 @@ def api_new_copr(username): elif form.validate_on_submit(): infos = []
- auto_createrepo = True - try: - dct = json.loads(flask.request.data) - if "auto_createrepo" in dct: - val = dct["auto_createrepo"] - if isinstance(val, bool): - auto_createrepo = val - elif str(val).lower() in ["false", "no"]: - auto_createrepo = False - except Exception: - pass - try: copr = coprs_logic.CoprsLogic.add( name=form.name.data.strip(), @@ -104,7 +92,7 @@ def api_new_copr(username): description=form.description.data, instructions=form.instructions.data, check_for_duplicates=True, - auto_createrepo=auto_createrepo + auto_createrepo=True, ) infos.append("New project was successfully created.")
copr-commits@lists.fedorahosted.org