aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/packages/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/packages/__init__.py b/app/views/packages/__init__.py
index 2a029a5..a486445 100644
--- a/app/views/packages/__init__.py
+++ b/app/views/packages/__init__.py
@@ -143,7 +143,7 @@ class PackageForm(FlaskForm):
tags = QuerySelectMultipleField('Tags', query_factory=lambda: Tag.query.order_by(db.asc(Tag.name)), get_pk=lambda a: a.id, get_label=lambda a: a.title)
harddep_str = StringField("Hard Dependencies", [Optional(), Length(0,1000)])
softdep_str = StringField("Soft Dependencies", [Optional(), Length(0,1000)])
- repo = StringField("Repo URL", [Optional(), URL()])
+ repo = StringField("VCS Repository URL", [Optional(), URL()])
website = StringField("Website URL", [Optional(), URL()])
issueTracker = StringField("Issue Tracker URL", [Optional(), URL()])
forums = IntegerField("Forum Topic ID", [Optional(), NumberRange(0,999999)])
@@ -233,7 +233,7 @@ def create_edit_package_page(author=None, name=None):
db.session.commit() # save
- if wasNew and package.canImportScreenshot():
+ if wasNew and package.repo is not None:
task = importRepoScreenshot.delay(package.id)
return redirect(url_for("check_task", id=task.id, r=package.getDetailsURL()))