Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions jumpstart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import random
import textwrap
from datetime import datetime, timedelta, timezone, tzinfo
import pytz
from sentry_sdk.integrations.flask import FlaskIntegration
import sentry_sdk
import requests
Expand Down Expand Up @@ -54,7 +55,7 @@
db.create_all()

# Initializes the database for Files
file = File(title="drno")
file = File(title="Jumpstart.exe")
db.session.query(File).delete()
db.session.commit()
db.session.add(file)
Expand Down Expand Up @@ -94,7 +95,7 @@ def index():
def calendar():

# Call the Calendar API
now = datetime.now(timezone.utc)
now = datetime.now(timezone.utc or pytz.utc)
events_result = calendar_service.events().list(
calendarId='rti648k5hv7j3ae3a3rum8potk@group.calendar.google.com',
timeMin=now.isoformat(),
Expand Down Expand Up @@ -183,7 +184,7 @@ def showerthoughts():
randompost = random.randint(1, 20)
url = requests.get(
'https://www.reddit.com/r/showerthoughts/top.json',
headers={'User-agent':'Showerthoughtbot 0.1'},
headers={'User-agent':'Showerthoughtbot 0.1'},
)
reddit = json.loads(url.text)
shower_thoughts = textwrap.fill((reddit['data']['children'][randompost]['data']['title']), 50)
Expand Down
2 changes: 1 addition & 1 deletion jumpstart/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ body{
width: 760px;
height: 580px;
float: right;
margin-bottom: 4%;
margin-bottom: 3%;
}

.announcements{
Expand Down
Loading