aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.gitignore6
-rwxr-xr-xdocker-compose.yml2
-rw-r--r--edaweb/services.py12
-rw-r--r--edaweb/static/images/random.jpgbin202536 -> 0 bytes
-rw-r--r--entrypoint.sh4
-rw-r--r--papers.md25
6 files changed, 15 insertions, 34 deletions
diff --git a/.gitignore b/.gitignore
index 087b0b3..5cb2818 100755
--- a/.gitignore
+++ b/.gitignore
@@ -2,10 +2,10 @@
*.pub
homelab-wiki/wiki.env
homelab-wiki/images/*
-edaweb.conf
+*edaweb.conf
markdowns/
-static/images/random.jpg
-static/zips/*.zip
+*random.jpg
+*.zip
.nfs*
static/images/Thumbs.db
nitter/nitter.conf
diff --git a/docker-compose.yml b/docker-compose.yml
index 67976bf..ecfa9f9 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,7 +8,7 @@ services:
volumes:
- /tmp/:/media/ISOs/
- ./edaweb/static/:/app/edaweb/static/
- - ./edaweb.conf:/app/edaweb/edaweb.conf
+ - ./edaweb.conf:/app/edaweb.conf
- ./edaweb-docker.pem:/keys/docker-key.pem
ports:
- "6969:6969"
diff --git a/edaweb/services.py b/edaweb/services.py
index 87af050..eca2bde 100644
--- a/edaweb/services.py
+++ b/edaweb/services.py
@@ -247,7 +247,7 @@ def parse_tweet(tweet_url):
return dt, replying_to, text, images
-def scrape_whispa(whispa_url, since):
+def scrape_whispa(whispa_url, since = None):
tree = html.fromstring(requests.get(whispa_url).content.decode())
qnas = []
# we're not doing proper HTML scraping here really... since the site uses client side rendering
@@ -257,6 +257,9 @@ def scrape_whispa(whispa_url, since):
if "receivedFeedback" in js:
# my god this is horrible...
for j in json.loads(json.loads(js[19:-1])[1][2:])[0][3]["loadedUser"]["receivedFeedback"]:
+ if j["childFeedback"] == []:
+ continue
+
dt = datetime.datetime.fromisoformat(j["childFeedback"][0]["createdAt"][:-1])
qnas.append({
@@ -359,7 +362,8 @@ def get_recent_commits(db, max_per_repo = 3):
return sorted(out, key = lambda a: a["datetime"], reverse = True)
if __name__ == "__main__":
- import database
+ print(scrape_whispa(CONFIG.get("qnas", "url")))
+ # import database
- with database.Database() as db:
- print(json.dumps(get_recent_commits(db), indent=4))
+ # with database.Database() as db:
+ # print(json.dumps(get_recent_commits(db), indent=4))
diff --git a/edaweb/static/images/random.jpg b/edaweb/static/images/random.jpg
deleted file mode 100644
index 4e23beb..0000000
--- a/edaweb/static/images/random.jpg
+++ /dev/null
Binary files differ
diff --git a/entrypoint.sh b/entrypoint.sh
index 335ad66..70d7b26 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,3 +1,5 @@
+rm -rvf /app/edaweb/edaweb.conf/
+ln -s /app/edaweb.conf /app/edaweb/edaweb.conf
printenv | grep -v "no_proxy" >> /etc/environment
tmux new-session -d -s "cron" 'cron -f || bash && bash';
-python3 /app/edaweb/app.py --production \ No newline at end of file
+python3 /app/edaweb/app.py --production
diff --git a/papers.md b/papers.md
deleted file mode 100644
index 8da5119..0000000
--- a/papers.md
+++ /dev/null
@@ -1,25 +0,0 @@
-this page lists some of the papers i have written! it's not an exhaustive list, just mostly the ones i'm most proud of the latex of
-
-## published papers
-
-i pinky promise i've had academic papers published, im just going to add them when they've actually been published not just accepted
-
-## coursework
-
-### level 7
-
-#### advanced ai
-
-<iframe class="pdf" src="/pdf/aai.pdf" width="65%" height="500pt"></iframe>
-
-this was part of the assessment for an 'advanced ai' module, it mostly pertains to bayesian networks
-
-#### advanced robotics
-
-<iframe class="pdf" src="/pdf/ar2.pdf" width="65%" height="500pt"></iframe>
-
-this assessment pertains to learning from demonstration with manipulators in robotics, and mostly talks about and does some experiments with dynamic movement primitives (DMPs) and stable estimator of dynamic systems (SEDs)
-
-
-
-