Skip to content

Commit

Permalink
fix repo publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Nov 16, 2020
1 parent f4040c6 commit 452135f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OnToology/autoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def previsual(useremail, target_repo):
user = user[0]
found = False
repo = None
for r in user.repos:
for r in user.repos.all():
if target_repo == r.url:
found = True
repo = r
Expand Down Expand Up @@ -957,7 +957,7 @@ def publish(name, target_repo, ontology_rel_path, useremail):
error_msg = "user is not found"
dolog("publish> error: %s" % str(e))
return error_msg
for r in user.repos:
for r in user.repos.all():
if target_repo == r.url:
found = True
repo = r
Expand Down

0 comments on commit 452135f

Please sign in to comment.