Skip to content

Commit aa60238

Browse files
committed
Fixed time size, changed datadog iframe
1 parent b9b6d6c commit aa60238

File tree

3 files changed

+173
-171
lines changed

3 files changed

+173
-171
lines changed

jumpstart/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import random
1111
import textwrap
1212
from datetime import datetime, timedelta, timezone, tzinfo
13+
import pytz
1314
from sentry_sdk.integrations.flask import FlaskIntegration
1415
import sentry_sdk
1516
import requests
@@ -54,7 +55,7 @@
5455
db.create_all()
5556

5657
# Initializes the database for Files
57-
file = File(title="drno")
58+
file = File(title="Jumpstart.exe")
5859
db.session.query(File).delete()
5960
db.session.commit()
6061
db.session.add(file)
@@ -94,7 +95,7 @@ def index():
9495
def calendar():
9596

9697
# Call the Calendar API
97-
now = datetime.now(timezone.utc)
98+
now = datetime.now(timezone.utc or pytz.utc)
9899
events_result = calendar_service.events().list(
99100
calendarId='rti648k5hv7j3ae3a3rum8potk@group.calendar.google.com',
100101
timeMin=now.isoformat(),
@@ -183,7 +184,7 @@ def showerthoughts():
183184
randompost = random.randint(1, 20)
184185
url = requests.get(
185186
'https://www.reddit.com/r/showerthoughts/top.json',
186-
headers={'User-agent':'Showerthoughtbot 0.1'},
187+
headers={'User-agent':'Showerthoughtbot 0.1'},
187188
)
188189
reddit = json.loads(url.text)
189190
shower_thoughts = textwrap.fill((reddit['data']['children'][randompost]['data']['title']), 50)

jumpstart/static/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ body{
5454
width: 760px;
5555
height: 580px;
5656
float: right;
57-
margin-bottom: 4%;
57+
margin-bottom: 3%;
5858
}
5959

6060
.announcements{

0 commit comments

Comments
 (0)