Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Commit 71f9595

Browse files
committed
Clear/Remove ToDos from code
1 parent f308d1a commit 71f9595

8 files changed

+10
-116
lines changed

doku/literatur.bib

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
%TODO:
2-
%Seitenzahlen bei Herausgeberwerken/Buchteilen hinschreiben
3-
%DOI links pflegen
4-
51
62
@misc{heise-django-2011,
73
author = {{heise online, Matthias Wessendorf}},
@@ -19,94 +15,3 @@ @book{scheurer
1915
isbn={9783825287061}
2016
}
2117
22-
23-
@incollection{kremer2005werkstatt,
24-
title={Werkstatt-Wettbewerb Quartier},
25-
author={Kremer-Prei{\ss}, Ursula and Stolarz, Holger},
26-
booktitle={Dokumentation der ausgezeichneten Beitr{\"a}ge},
27-
year={2005},
28-
editor={Bertelsmann Stiftung, Gütersloh und Kuratorium Deutsche Altershilfe (KDA), Köln}
29-
}
30-
31-
@incollection{schnur2014quartiersforschung,
32-
%doi={10.1007/978-3-531-19963-4},
33-
booktitle={Quartiersforschung: Zwischen Theorie und Praxis},
34-
author={Schnur, Olaf},
35-
year={2014},
36-
pages={21-56},
37-
publisher={Springer VS},
38-
location={Wiesbaden},
39-
editor={Schnur, Olaf and Drilling, Matthias and Gebhardt, Dirk},
40-
title={Quartiersforschung im Überblick: Konzepte, Definitionen und aktuelle Perspektiven}
41-
}
42-
43-
@incollection{brauer2011einfuhrung,
44-
title={Einf{\"u}hrung in die Immobilienwirtschaft},
45-
author={Brauer, Kerry-U},
46-
booktitle={Grundlagen der Immobilienwirtschaft},
47-
year={2011},
48-
pages={1-52},
49-
editor = {Brauer, Kerry-U},
50-
publisher={Springer Gabler},
51-
location={Wiesbaden}
52-
}
53-
54-
@book{wirtschaftsfaktorimmo,
55-
title={Wirtschaftsfaktor Immobilien 2017},
56-
author={Just, Tobias and Voigtl{\"a}nder, Michael and Eisfeld, Rupert and Henger, Ralph and Hesse, Markus and Toschka, Alexandra},
57-
year={2017},
58-
publisher={IREBS International Real Estate Business School, Universit{\"a}t Regensburg}
59-
}
60-
61-
@incollection{immotrans,
62-
title={Transformation der Immobilienwirtschaft: Eine empirische Studie deutscher immobilienwirtschaftlicher Akteure},
63-
author={Pfn{\"u}r, Andreas and Wagner, Benjamin},
64-
year={2018},
65-
booktitle={Arbeitspapiere zur immobilienwirtschaftlichen Forschung und Praxis},
66-
editor = {Pfn{\"u}r, Andreas},
67-
volume = {37}
68-
}
69-
70-
@book{eichhorn2016,
71-
title={Das Prinzip Wirtschaftlichkeit},
72-
author={Eichhorn, Peter and Merk, Joachim},
73-
year={2016},
74-
edition={4},
75-
publisher={Springer Gabler},
76-
location={Wiesbaden}
77-
%doi={10.1007/978-3-658-07830-0}
78-
}
79-
80-
@misc{rft-poc,
81-
author = {{Rat für Forschung und Technologieentwicklung}},
82-
title = {{Empfehlung zu einer optimierten Proof-of-Concept-Unterstützung im Wissenstransfers}},
83-
url = {https://www.rat-fte.at/files/rat-fte-pdf/einzelempfehlungen/2013/131203_Empfehlung_Proof%20of%20Concept.pdf},
84-
urldate = {2020-06-01},
85-
year = {2013},
86-
}
87-
88-
@misc{kiwi,
89-
author = {{KIWI.KI GmbH}},
90-
title = {{Die KIWI Story}},
91-
url = {https://kiwi.ki/unternehmen/},
92-
urldate = {2020-06-06},
93-
year = {2020},
94-
}
95-
96-
@article{zia,
97-
title={Einsatz digitaler Technologien in der Immobilienwirtschaft},
98-
author={Rodeck, Martin and Schulz-Wulkow, Christian and Bäß, Thilo and Kremer, Gerald and Dr. Scheidecker, Lars},
99-
journal={Studie vom Zentralen Immobilien Ausschuss (ZIA) und Ernst \& Young Real Estate GmbH (EY)},
100-
year={2016}
101-
}
102-
103-
104-
@article{ct-3-2004,
105-
author ={Wester, J{\"o}rg},
106-
title = {{Microsoft gibt Smart Displays auf}},
107-
journal = {{c't-Magazin}},
108-
volume = {2004},
109-
number = {3},
110-
pages = {24},
111-
year = {2004}
112-
}

doku/thesis_main.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
\usepackage[hang, multiple]{footmisc} % Mehrere Fussnoten nacheinander mit Komma separiert
5555
\setlength{\footnotemargin}{1em}
5656

57-
%\usepackage{todonotes} % todo Aufgaben als Kommentare verfassen für verschiedene Editoren
58-
5957
\usepackage{epstopdf} %Pakete für Tabellen
6058
\usepackage{nicefrac} % Brüche
6159
\usepackage{multirow}

rpg/rjh_rpg/consumer_game.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ async def receive(self, text_data):
113113
self.my_user_char = await db_get_user_char_from_user_id(self.game_id, self.request_user_id)
114114

115115

116-
# (TODO!) update timestamps, delete old entrys
117-
# check timestamps, delete old and zombie entrys
116+
# (OPT/LATER/BONUS) update timestamps, delete old entrys, check timestamps, delete old and zombie entrys
118117

119118
self.mycounter = self.mycounter + 1
120119

@@ -142,7 +141,7 @@ async def receive(self, text_data):
142141
# this part sadly does not work correctly. problem here is that with multiple
143142
# clients/players, the rounds are driven at the same time. solution should be
144143
# a token -- but this token also need to be synced, which brings new promblems.
145-
# (TODO!) get expert help on that.
144+
# (OPT/LATER/BONUS) get expert help on that.
146145

147146
# self.round_state_token_is_mine = False
148147
# if await db_get_is_round_state_locked(self.game_id) == False:
@@ -253,7 +252,6 @@ async def receive(self, text_data):
253252

254253
elif round_state == 100:
255254

256-
# (TODO!) Implement selection based on aggro-table instand of random char
257255
char_to_hit = await db_get_random_alive_user_char_in_games_id(self.game_id)
258256

259257
if not char_to_hit: # failsave in case no player is alive

rpg/rjh_rpg/consumer_game_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def db_set_user_char_to_dead(user_char_in_games_id):
111111
@database_sync_to_async
112112
def db_give_dmg_to_user_char(user_char_in_games_id, ap_to_deliver):
113113
last_hp = UserCharInGames.objects.get(id=user_char_in_games_id).current_hp
114-
ap_to_deliver = random.randint(int(ap_to_deliver * rpg_get_config("dmg_min")), int(ap_to_deliver * rpg_get_config("dmg_max"))) # (TODO!) Maybe later replace with dice
114+
ap_to_deliver = random.randint(int(ap_to_deliver * rpg_get_config("dmg_min")), int(ap_to_deliver * rpg_get_config("dmg_max")))
115115
new_hp = last_hp - int(ap_to_deliver)
116116
if new_hp < 0:
117117
new_hp = 0
@@ -204,7 +204,7 @@ def db_get_user_char_current_hp(user_char_in_games_id):
204204
@database_sync_to_async
205205
def db_give_dmg_to_enemy(game_id, ap_to_deliver):
206206
last_hp = Games.objects.get(id=game_id).enemy_current_hp
207-
ap_to_deliver = random.randint(int(ap_to_deliver * rpg_get_config("dmg_min")), int(ap_to_deliver * rpg_get_config("dmg_max"))) # (TODO!) Maybe later replace with dice
207+
ap_to_deliver = random.randint(int(ap_to_deliver * rpg_get_config("dmg_min")), int(ap_to_deliver * rpg_get_config("dmg_max")))
208208
new_hp = last_hp - int(ap_to_deliver)
209209
if new_hp < 0:
210210
new_hp = 0

rpg/rjh_rpg/consumer_lobby.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,9 @@ async def msg_group_send_content(self, event):
103103
slot_template = slot_template.replace('**js_button_function**','free_the_slot')
104104
slot_template = slot_template.replace('**button_text**','Platz freigeben')
105105

106-
# (TODO!) every user gets the same html string, so this logic does not work in this way.
107-
# maybe with JS an local check if the char_id fits the button
108-
# if str(user_char_name) == str(char_name): # disable button not here, maybe on countdown
109-
# slot_template = slot_template.replace('**button_disabled**','**button_disabled_for_lvl2**')
110-
# else: # disable button here now - because first you need to free the taken slot
111-
# slot_template = slot_template.replace('**button_disabled**','disabled')
106+
# (OPT/LATER/BONUS) every user gets the same html string. set a button to disabled,
107+
# could be solved in the client with JS
108+
112109
slot_template = slot_template.replace('**button_disabled**','**button_disabled_for_lvl2**')
113110

114111
else: # slot is free
@@ -205,9 +202,6 @@ async def receive(self, text_data):
205202
char_id = text_data_json['char_id']
206203

207204
if message == 'heartbeat':
208-
# (TODO!) update timestamps, delete old entrys
209-
# check timestamps, delete old and zombie entrys
210-
211205
try:
212206
heartbeat_char_id = text_data_json['char_id']
213207
await rpg_websocket_user_char_chat_heartbeat(heartbeat_char_id)

rpg/rjh_rpg/consumers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ async def chatroom_message(self, event):
8787

8888
@database_sync_to_async
8989
def db_get_list_chars_in_chat(self):
90-
# (TODO!) Delete users with to old datetime 'lastaction'
9190
list_of_chars_in_chat = GameState.objects.filter(place=self.room_name).order_by('char')
9291
current_datetime = int(datetime.now().strftime('%s'))
9392
chat_timeout = rpg_get_config('chat_timeout')

rpg/rjh_rpg/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Char_Class(models.TextChoices):
4848
xp_to_spend = models.IntegerField(default=0)
4949

5050

51-
def __str__(self): # (TODO!) this maybe the cause of many problems... why do we need this? would it be better w/o? to fetch id's...
51+
def __str__(self):
5252
return self.name
5353

5454

@@ -74,7 +74,7 @@ def __str__(self):
7474
class LobbySlots(models.Model):
7575
user_char_id = models.OneToOneField(UserChar, on_delete=models.CASCADE, unique=True)
7676
game_scene_id = models.ForeignKey(GameScenes, on_delete=models.CASCADE) # also known as scene_id
77-
slot_id = models.IntegerField(null=True, blank=True) # also known as scene_id (TODO!) install as a required field w/o null and blank
77+
slot_id = models.IntegerField(null=True, blank=True) # also known as scene_id
7878
datetime_slot_taken = models.DateTimeField(default=datetime.now)
7979
datetime_locked_in = models.DateTimeField(null=True, blank=True)
8080

rpg/rjh_rpg/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def login(request):
5151
user = auth.authenticate(username=request.POST['username'],password = request.POST['password'])
5252
if user is not None:
5353
auth.login(request,user)
54-
# (TODO!) should we delete gamesessions here?
54+
# (OPT/LATER/BONUS) delete gamesessions here
5555
return redirect('home')
5656
else:
5757
return render (request,'login.html', {'error':'Benutzername oder Passwort falsch!'})

0 commit comments

Comments
 (0)