mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Merge comparisons with 'in'
This commit is contained in:
parent
f4739ef3c0
commit
cf0100cf11
6 changed files with 19 additions and 17 deletions
|
@ -142,7 +142,7 @@ def get_app_from_url(url):
|
|||
app.RepoType = 'git'
|
||||
app.SourceCode = url
|
||||
app.IssueTracker = url + '/issues'
|
||||
elif parsed.netloc == 'gitlab.com' or parsed.netloc == 'framagit.org':
|
||||
elif parsed.netloc in ('gitlab.com', 'framagit.org'):
|
||||
# git can be fussy with gitlab URLs unless they end in .git
|
||||
if url.endswith('.git'):
|
||||
url = url[:-4]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue