Luke Ross

Colorado

4 releases git clone https://lukeross.name/projects/colorado.git/

Web-based git repository viewer.

Commit 1ba7c98b83e8667f6e21d3f9f3033d0b40206147

Fix typo

Committed 26 Jul 2018 by Luke Ross

colorado/views.py

@@ -95,7 +95,7 @@ def configure_template(tpl, repo=None):
 		else:
 			run_on_meld(tpl, "repo-tags", lambda n: n.deparent())
 
-		if len(tpl.findmeld("forked")):
+		if tpl.findmeld("forked") is not None:
 			if repo.forked_from_git:
 				if repo.forked_from_http:
 					tpl.findmeld("forked-url").set("href", repo.forked_from_http)