Now search for something and get a list of Free Competitors for it.
+
diff --git a/modules/#render.py# b/modules/#render.py#
deleted file mode 100644
index aa08c08..0000000
--- a/modules/#render.py#
+++ /dev/null
@@ -1,360 +0,0 @@
-# THIS SOFTWARE IS A PART OF FREE COMPETITOR PROJECT
-# THE FOLLOWING SOURCE CODE I UNDER THE GNU
-# AGPL LICENSE V3 OR ANY LATER VERSION.
-
-# This project is not for simple users, but for
-# web-masters and a like, so we are counting on
-# your ability to set it up and running.
-
-import os
-from modules import search
-
-
-def html(page, json):
-
- # This function adds a rendering of the json into the page
-
- free = search.is_free(json)
- name = json.get("names",["Unknown"])[0]
- page = page + """
-
-
-
-
- """
- page = page + "\n "
- page = page + "\n
\n \n\n"
-
- page = page + """
-
-
-
- """
-
- # Few words about it
- comment = json.get("comment","")
- not_foss = ['open source', 'open-source']
- if "open source" or "open-source" in comment.lower():
- # Well... Here is a thing. Free Software, not open source.
- where = comment.lower().find("open source")
- # In case it has a slash in it.
- if where == -1:
- where = comment.lower().find("open-source")
- ops = comment[where:where+11]
- if ops:
- comment = comment.replace(ops,
- ""+ops+"")
- page = page + "\n
\n "+comment+"\n
\n\n"
-
- # I want to show nothing else from if it's proprietary
- issues_files = list(os.listdir("data/issues"))
- if "issues" in json:
- l = json.get("issues", [])
- page = page +"
Anti-Features / Problems:
"
-
- for i in l:
- if i+".html" not in issues_files:
- page = page + " "+i+" "
- else:
- page = page + ''
- page = page + "  "+i+""
- issuefile = open("data/issues/"+i+".html")
- page = page + "
-
- """
-
- found = search.suggest(json)
-
- biggest = 0
- for i in found:
- if i[0] > biggest:
- biggest = i[0]
- more = False
- for i in found:
- free = search.is_free(i[-1])
-
- if not i[0] or i[-1]["names"] == json["names"] or not free:
- continue
- try:
- frac = int(i[0]/biggest*100)
- except:
- frac = 0
-
- if frac < 20 and not more: # Below 40% features match
- page = page + """
-
-
-
-
-
-