Skip to content

Commit 6dad725

Browse files
koray-erenJeff
authored andcommitted
cleanup comments and debugs prints
1 parent da4e8a9 commit 6dad725

File tree

4 files changed

+6
-68
lines changed

4 files changed

+6
-68
lines changed

sogs/routes/views.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -34,40 +34,6 @@ def serve_index():
3434

3535
@views.get("/r/<Room:room>/")
3636
def view_room(room):
37-
messageId = 100
38-
response = ''
39-
print()
40-
try:
41-
# response = message_single(room=room, msg_id=messageId)
42-
response = messages_recent(room=room)
43-
print(' +++ NO ERROR +++ ')
44-
if response.status_code == 200:
45-
print(" === EXISTS === ")
46-
47-
request_data = response.json[0]['data']
48-
signature = response.json[0]['signature']
49-
request = response.json[0]
50-
epoch_time = request['posted']
51-
decoded_data = decode_base64(request_data)
52-
print('protobuf')
53-
print(request_data)
54-
# content = protobuf.Content()
55-
print(protobuf.Content().ParseFromString(decoded_data) )
56-
print()
57-
print('MSG BODY:')
58-
print(type(response.json[0]) )
59-
print(request )
60-
print(message_contents(decoded_data) )
61-
my_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(epoch_time))
62-
print(my_time)
63-
# print(msg )
64-
print()
65-
else:
66-
print(" !!! NO MESSAGE !!! ")
67-
print()
68-
except Exception as e:
69-
print("ERROR MSG: {}".format(e))
70-
7137
if not room.default_read:
7238
abort(http.FORBIDDEN)
7339

sogs/templates/base.html

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,6 @@
44
<title> sogs </title>
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<link rel="stylesheet" href="{{ url_for('static', filename='output.css') }}">
7-
<!-- <script src="https://cdn.tailwindcss.com"></script> -->
8-
9-
<!-- <script>
10-
tailwind.config = {
11-
darkMode: 'class',
12-
theme: {
13-
extend: {
14-
colors: {
15-
sessionGreen: '#00e97b',
16-
lightGray: '#585858',
17-
otherGray: '#272726'
18-
}
19-
},
20-
screens : {
21-
'xs' : '365px',
22-
'sm' : '640px',
23-
'md' : '768px',
24-
'lg' : '1024px',
25-
'xl' : '1280px',
26-
'2xl' : '1536px'
27-
}
28-
}
29-
}
30-
</script> -->
31-
327
</head>
338
<body class="dark:bg-otherGray transition duration-500 h-full flex flex-col overflow-hidden">
349

sogs/templates/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
<section class="overflow-y-auto text-black dark:text-white shrink ">
1010
<div class="m-5 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 justify-items-center gap-y-2 gap-x-2">
1111
{% for room in rooms %}
12-
{% for i in range(8) %}
13-
<a class="px-5 flex flex-col justify-center items-center transition duration-500 text-center w-full h-24
14-
border-2 border-sessionGreen bg-gray-300 hover:bg-black hover:text-white md:h-28
15-
dark:border-sessionGreen rounded-full dark:bg-otherGray dark:hover:bg-sessionGreen dark:hover:text-black " href="/r/{{room.token}}">
16-
<p class=" text-2xl xs:text-3xl sm:text-4xl">{{room.token }}</p>
17-
<p class="text-sm xs:text-lg sm:text-xl">{{room.active_users }} Active User{{'s' if room.active_users > 1}}</p>
18-
</a>
19-
{% endfor %}
12+
<a class="px-5 flex flex-col justify-center items-center transition duration-500 text-center w-full h-24
13+
border-2 border-sessionGreen bg-gray-300 hover:bg-black hover:text-white md:h-28
14+
dark:border-sessionGreen rounded-full dark:bg-otherGray dark:hover:bg-sessionGreen dark:hover:text-black " href="/r/{{room.token}}">
15+
<p class=" text-2xl xs:text-3xl sm:text-4xl">{{room.token }}</p>
16+
<p class="text-sm xs:text-lg sm:text-xl">{{room.active_users }} Active User{{'s' if room.active_users > 1}}</p>
17+
</a>
2018
{% endfor %}
2119
</div>
2220
</section>

sogs/templates/view_room.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242

4343
{% block body %}
44-
<!-- <button class="bg-black text-white dark:bg-sessionGreen dark:text-black rounded px-1 py-1 my-2" > <a href="/">< Back</a></button> -->
4544

4645
<section class="overflow-y-auto text-black dark:text-white flex flex-col-reverse items-center ">
4746
{% if show_recent %}

0 commit comments

Comments
 (0)