diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3cf8c6d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+env
+__pycache__
\ No newline at end of file
diff --git a/dashboard.py b/dashboard.py
deleted file mode 100644
index e62e05b..0000000
--- a/dashboard.py
+++ /dev/null
@@ -1,5 +0,0 @@
-'''
-Class to generate a static website based on a csv file
-'''
-class Dashboard():
- pass
\ No newline at end of file
diff --git a/discourse.py b/discourse.py
index a380b11..1e5c73e 100644
--- a/discourse.py
+++ b/discourse.py
@@ -24,14 +24,10 @@ class Discourse():
def category_topics_csv(self, category_id: str) -> requests.Response:
"""Save category topics to a csv file"""
cat_data = self.get_category_data(category_id)
- columns = ["id", "title", "tags", "url"]
+ columns = ["id", "title", "tags"]
with open('zasoby.csv', 'w', encoding='UTF8') as f:
write = csv.writer(f)
write.writerow(columns)
for topic in cat_data["topic_list"]["topics"]:
- write.writerow([topic["id"], topic["title"], topic["tags"], f'{self.url}t/{topic["id"]}'])
-
-
-if __name__=="__main__":
- dis = Discourse("https://kb.hs3.pl/")
- dis.category_topics_csv(9)
\ No newline at end of file
+ html_url = f'{topic["title"]}'
+ write.writerow([topic["id"], html_url, topic["tags"]])
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..ce05618
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,248 @@
+
+
+
+
+
+ Baza Zasobów Hackerspace Trójmiasto
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Baza Zasobów Hackerspace Trójmiasto
+
+
+
+
+ | id |
+
+ title |
+
+ tags |
+
+
+
+
+
+
+
+ | 45 |
+
+ Jak stworzyć nowy wpis do bazy zasobów Hackerspace Trójmiasto? |
+
+ [] |
+
+
+
+
+
+ | 20 |
+
+ O kategorii: Baza Wiedzy Hackerspace'u |
+
+ [] |
+
+
+
+
+
+ | 108 |
+
+ PC Engines APU2 Router Box |
+
+ ['cow-work', 'networking'] |
+
+
+
+
+
+ | 61 |
+
+ HS3 BOFH |
+
+ ['cow-work', 'garage', 'events', 'bofh'] |
+
+
+
+
+
+ | 93 |
+
+ King Bob |
+
+ ['cow-work'] |
+
+
+
+
+
+ | 92 |
+
+ Drukarka 3D Creality K1 Max |
+
+ ['tools', 'workshop', '3d-print'] |
+
+
+
+
+
+ | 91 |
+
+ Drukarka 3D Creality Ender 3 |
+
+ ['tools', 'workshop', '3d-print'] |
+
+
+
+
+
+ | 90 |
+
+ Chciejlista |
+
+ [] |
+
+
+
+
+
+ | 85 |
+
+ Komu powinien służyć Spejs |
+
+ [] |
+
+
+
+
+
+ | 84 |
+
+ Budżet |
+
+ [] |
+
+
+
+
+
+ | 83 |
+
+ Hackerspace Dragon Dreaming |
+
+ [] |
+
+
+
+
+
+ | 82 |
+
+ Biblioteka |
+
+ ['cow-work', 'books'] |
+
+
+
+
+
+ | 66 |
+
+ Apteczki |
+
+ ['cow-work', 'garage', 'bhp'] |
+
+
+
+
+
+ | 44 |
+
+ Brayton Power |
+
+ ['garage', 'projects'] |
+
+
+
+
+
+ | 52 |
+
+ Evil Submarine |
+
+ ['cow-work', 'projects'] |
+
+
+
+
+
+ | 50 |
+
+ Infinity mirror (duże) |
+
+ ['garage', 'projects'] |
+
+
+
+
+
+ | 47 |
+
+ Cricut Maker 3 ploter tnący |
+
+ ['tools', 'workshop'] |
+
+
+
+
+
+ | 41 |
+
+ Wiertarka PSB 500 RE BOSCH |
+
+ ['garage', 'tools'] |
+
+
+
+
+
+ | 46 |
+
+ What the Duck |
+
+ ['cow-work', 'wled'] |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+