From 798803a47f3e78134943df1653786347200a8302 Mon Sep 17 00:00:00 2001 From: jyamihud Date: Mon, 4 Apr 2022 19:54:11 +0300 Subject: [PATCH] Added a surveillance explanation --- data/issues/Surveillance.html | 1 + default.css | 5 +++++ modules/render.py | 18 +++++++++++++----- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 data/issues/Surveillance.html diff --git a/data/issues/Surveillance.html b/data/issues/Surveillance.html new file mode 100644 index 0000000..5dc8bcd --- /dev/null +++ b/data/issues/Surveillance.html @@ -0,0 +1 @@ +Surveillance, also presented sometimes to the user as Telemetry, Analytics or Targeted Advertising - is a feature of collecting personal information, or information about the use of the software by the company that provided the software. The company may try to justify such a malicious behavior by pointing the user on the immediate benefits of the surveillance. Like: "You will get ads specifically chosen for you". This is just a tactic to ease the fact that you are being watched. More about surveillance you can see on GNU.ORG/MALWARE. diff --git a/default.css b/default.css index 0f6e131..dd485ba 100644 --- a/default.css +++ b/default.css @@ -120,3 +120,8 @@ hr { border-top: 1px solid #b058c6; } +p { + margin-right: 5%; + margin-left: 5%; +} +} diff --git a/modules/render.py b/modules/render.py index b56a10b..9e87705 100644 --- a/modules/render.py +++ b/modules/render.py @@ -6,6 +6,7 @@ # 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): @@ -31,19 +32,26 @@ def html(page, json): # In case it has a slash in it. if where == -1: where = comment.lower().find("open-source") - os = comment[where:where+11] - comment = comment.replace(os, - ""+os+"") + ops = comment[where:where+11] + comment = comment.replace(ops, + ""+ops+"") page = page + "

"+comment+"

" # 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: - page = page + "  "+i+"
" - + if i+".html" not in issues_files: + page = page + "  "+i+"
" + else: + page = page + '
' + page = page + "  "+i+"" + issuefile = open("data/issues/"+i+".html") + page = page + "

"+issuefile.read()+"

" + page = page + "
" if not free: return page