aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-05-07 19:37:24 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-05-07 19:37:24 +0100
commit022fa3780ad63b49cb50c1482aa1d598e27feac5 (patch)
tree999115e2640d0d484082d535c46145fcc431fc7f
parent10d1da4b594838dea0a92daa8ec2de06f7abfab0 (diff)
downloadboymoder.blog-022fa3780ad63b49cb50c1482aa1d598e27feac5.tar.gz
boymoder.blog-022fa3780ad63b49cb50c1482aa1d598e27feac5.zip
Added testimonials
-rw-r--r--services.py26
-rw-r--r--static/images/testimonials.PNGbin0 -> 190391 bytes
-rw-r--r--templates/isocd.jinja2
-rw-r--r--templates/services.jinja28
4 files changed, 25 insertions, 31 deletions
diff --git a/services.py b/services.py
index d2ae979..51ab6a1 100644
--- a/services.py
+++ b/services.py
@@ -18,6 +18,12 @@ import os
theLastId = 0
+def get_isos(iso_dir):
+ print(os.path.exists(iso_dir))
+ return [
+ i for i in os.listdir(iso_dir)
+ ]
+
def humanbytes(B):
'Return the given bytes as a human friendly KB, MB, GB, or TB string'
B = float(B)
@@ -94,8 +100,8 @@ def get_qbit_stats():
def get_trans_stats():
client = clutch.client.Client(
address = "http://%s:%s/transmission/rpc" % (app.CONFIG["transmission"]["url"], app.CONFIG["transmission"]["port"]),
- username = app.CONFIG["transmission"]["user"],
- password = app.CONFIG["transmission"]["passwd"]
+ # username = app.CONFIG["transmission"]["user"],
+ # password = app.CONFIG["transmission"]["passwd"]
)
stats = json.loads(client.session.stats().json())
return {
@@ -228,10 +234,14 @@ def link_deleted(url):
return text[text.find("<title>") + 7 : text.find("</title>")] in ["Error | nitter", "イラストコミュニケーションサービス[pixiv]"]
if __name__ == "__main__":
- sbi = get_random_image(["lio_fotia", "promare"])
- print(sbi.tags)
- print(sbi.source)
- print(sbi.imurl)
- print(sbi.remove_tag("promare"))
+ # sbi = get_random_image(["lio_fotia", "promare"])
+ # print(sbi.tags)
+ # print(sbi.source)
+ # print(sbi.imurl)
+ # print(sbi.remove_tag("promare"))
+
+ import configparser
+ CONFIG = configparser.ConfigParser()
+ CONFIG.read("edaweb.conf")
-
+ print(get_isos(CONFIG.get("cds", "location"))) \ No newline at end of file
diff --git a/static/images/testimonials.PNG b/static/images/testimonials.PNG
new file mode 100644
index 0000000..8584cdd
--- /dev/null
+++ b/static/images/testimonials.PNG
Binary files differ
diff --git a/templates/isocd.jinja b/templates/isocd.jinja
index 915f837..da7a737 100644
--- a/templates/isocd.jinja
+++ b/templates/isocd.jinja
@@ -26,4 +26,6 @@
</form>
<p>I make no promises how long this will actually take, but you might get a special present too uwu</p>
<p>btw if u abuse this service i'll just ignore u</p>
+ <h3>Testimonials</h3>
+ <a href="https://nitter.eda.gay/stellarnate_/status/1492468706412269569"><img src="/img/testimonials.PNG"></a>
{% endblock %} \ No newline at end of file
diff --git a/templates/services.jinja b/templates/services.jinja
index 8044437..310d148 100644
--- a/templates/services.jinja
+++ b/templates/services.jinja
@@ -21,29 +21,6 @@
{% endif %}
</section>
<section id="torrents">
- <h2>qbittorrent</h2>
- {% if qbit == None %}
- <p>Couldn't access the qbittorrent API. Is docker container running?</p>
- {% else %}
- <table>
- <tr>
- <td>downloaded</td>
- <td>{{qbit["bytes_dl"]}}</td>
- </tr>
- <tr>
- <td>uploaded</td>
- <td>{{qbit["bytes_up"]}}</td>
- </tr>
- <tr>
- <td>torrents</td>
- <td>{{qbit["num"]}}</td>
- </tr>
- <tr>
- <td>ratio</td>
- <td>{{qbit["ratio"]}}</td>
- </tr>
- </table>
- {% endif %}
<h2>transmission</h2>
{% if trans == None %}
<p>Couldn't access the transmission API. Is docker container running?</p>
@@ -67,6 +44,11 @@
</tr>
</table>
{% endif %}
+ <br>
+ <img src="https://nitter.eda.gay/pic/media%2FFRnF3kcXwAAHE6v.png%3Fname%3Dorig">
+ <img src="https://nitter.eda.gay/pic/media%2FFRnF6I0WUAEq4FD.png%3Fname%3Dorig">
+ <br>
+ <a href="https://nitter.eda.gay/estrogenizedboy/status/1520464127516422144#m">statistics of my two old torrent clients which were shut down recently ;_;</a>
</section>
<section id=pihole>
<h2>pihole</h2>