diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2025-12-06 19:57:54 +0000 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-12-06 19:57:54 +0000 |
| commit | 13666206dc6007537ef2cfc7f599e76434a4c7f1 (patch) | |
| tree | 687b7c0a410717fddc97c607e64ea6ca8e959d83 /edaweb | |
| parent | ca13ac07ab3c29d7ca17de15c6c052e0edd057eb (diff) | |
| download | boymoder.blog-13666206dc6007537ef2cfc7f599e76434a4c7f1.tar.gz boymoder.blog-13666206dc6007537ef2cfc7f599e76434a4c7f1.zip | |
Diffstat (limited to 'edaweb')
| -rw-r--r-- | edaweb/app.py | 40 | ||||
| -rwxr-xr-x | edaweb/static/images/1583581996540.jpg | bin | 0 -> 89996 bytes | |||
| -rwxr-xr-x | edaweb/static/images/20251111_102045.jpg | bin | 0 -> 130991 bytes | |||
| -rwxr-xr-x | edaweb/static/images/20251111_102045.png | bin | 0 -> 43364 bytes | |||
| -rwxr-xr-x | edaweb/static/images/2209509307.jpg | bin | 0 -> 46907 bytes | |||
| -rwxr-xr-x | edaweb/static/images/2684330373.jpg | bin | 0 -> 10428 bytes | |||
| -rwxr-xr-x | edaweb/static/images/PXL_20251108_063442686.MP.jpg | bin | 0 -> 6945886 bytes | |||
| -rwxr-xr-x | edaweb/static/images/bdd_fuel.png | bin | 0 -> 153407 bytes | |||
| -rwxr-xr-x | edaweb/static/images/photo_2025-12-04_22-34-24.jpg | bin | 0 -> 102750 bytes | |||
| -rw-r--r-- | edaweb/static/index.md | 4 |
10 files changed, 20 insertions, 24 deletions
diff --git a/edaweb/app.py b/edaweb/app.py index 436df7a..36fe8bb 100644 --- a/edaweb/app.py +++ b/edaweb/app.py @@ -214,26 +214,26 @@ def get_iso_cd(): id_ = id_ ) -@app.route("/random") -def serve_random(): - try: - tags = flask.request.args['tags'].split(" ") - except KeyError: - flask.abort(400) - - sbi = services.get_random_image(tags) - req = urllib.request.Request(sbi.imurl) - mediaContent = urllib.request.urlopen(req).read() - with open(os.path.join(os.path.dirname(__file__), "static", "images", "random.jpg"), "wb") as f: - f.write(mediaContent) - - with database.Database() as db: - return flask.render_template( - "random.html.j2", - **get_template_items("random image", db), - sbi = sbi, - localimg = "/img/random.jpg?seed=%i" % random.randint(0, 9999) - ) +#@app.route("/random") +#def serve_random(): +# try: +# tags = flask.request.args['tags'].split(" ") +# except KeyError: +# flask.abort(400) +# +# sbi = services.get_random_image(tags) +# req = urllib.request.Request(sbi.imurl) +# mediaContent = urllib.request.urlopen(req).read() +# with open(os.path.join(os.path.dirname(__file__), "static", "images", "random.jpg"), "wb") as f: +# f.write(mediaContent) +# +# with database.Database() as db: +# return flask.render_template( +# "random.html.j2", +# **get_template_items("random image", db), +# sbi = sbi, +# localimg = "/img/random.jpg?seed=%i" % random.randint(0, 9999) +# ) @app.route("/questions") def serve_questions(): diff --git a/edaweb/static/images/1583581996540.jpg b/edaweb/static/images/1583581996540.jpg Binary files differnew file mode 100755 index 0000000..53ceaae --- /dev/null +++ b/edaweb/static/images/1583581996540.jpg diff --git a/edaweb/static/images/20251111_102045.jpg b/edaweb/static/images/20251111_102045.jpg Binary files differnew file mode 100755 index 0000000..9f4c94b --- /dev/null +++ b/edaweb/static/images/20251111_102045.jpg diff --git a/edaweb/static/images/20251111_102045.png b/edaweb/static/images/20251111_102045.png Binary files differnew file mode 100755 index 0000000..e7d7700 --- /dev/null +++ b/edaweb/static/images/20251111_102045.png diff --git a/edaweb/static/images/2209509307.jpg b/edaweb/static/images/2209509307.jpg Binary files differnew file mode 100755 index 0000000..1b5d515 --- /dev/null +++ b/edaweb/static/images/2209509307.jpg diff --git a/edaweb/static/images/2684330373.jpg b/edaweb/static/images/2684330373.jpg Binary files differnew file mode 100755 index 0000000..b050888 --- /dev/null +++ b/edaweb/static/images/2684330373.jpg diff --git a/edaweb/static/images/PXL_20251108_063442686.MP.jpg b/edaweb/static/images/PXL_20251108_063442686.MP.jpg Binary files differnew file mode 100755 index 0000000..86171bb --- /dev/null +++ b/edaweb/static/images/PXL_20251108_063442686.MP.jpg diff --git a/edaweb/static/images/bdd_fuel.png b/edaweb/static/images/bdd_fuel.png Binary files differnew file mode 100755 index 0000000..e79522e --- /dev/null +++ b/edaweb/static/images/bdd_fuel.png diff --git a/edaweb/static/images/photo_2025-12-04_22-34-24.jpg b/edaweb/static/images/photo_2025-12-04_22-34-24.jpg Binary files differnew file mode 100755 index 0000000..51ced37 --- /dev/null +++ b/edaweb/static/images/photo_2025-12-04_22-34-24.jpg diff --git a/edaweb/static/index.md b/edaweb/static/index.md index e6bf91d..0d45f12 100644 --- a/edaweb/static/index.md +++ b/edaweb/static/index.md @@ -6,10 +6,6 @@ site now also avaliable under the domain [boymoder.blog](https://boymoder.blog)! my name is eden and im a 23yo (boymoder/[fujoshi](https://www.urbandictionary.com/define.php?term=fujoshi)) computer science/robotics PhD student. i made my own website to encourage others to do so too. i'll post my thoughts on here sometimes, and use this site to link to other stuff i host [more about me](/thought?id=2). -[click here for a random image of lio fotia](/random?tags=lio_fotia) - -[click here for a random KawoShin image](/random?tags=nagisa_kaworu+ikari_shinji+yaoi) - ## FOSS alternative services - [nextcloud - dropbox (+ much more!) alternative](https://nc.eda.gay) |
