a little redo of how the statuses are stored
This commit is contained in:
parent
b8dc89723e
commit
de12b4175a
17
app/app.py
17
app/app.py
@ -25,6 +25,7 @@ DEV = int(config['NETWORK']['DEV'])
|
|||||||
|
|
||||||
MUSIC_API_TOKEN = config['AUTH']['MUSIC_API_TOKEN']
|
MUSIC_API_TOKEN = config['AUTH']['MUSIC_API_TOKEN']
|
||||||
MUSIC_API_URL = config['NETWORK']['MUSIC_API_URL']
|
MUSIC_API_URL = config['NETWORK']['MUSIC_API_URL']
|
||||||
|
statuses = None
|
||||||
|
|
||||||
def get_posts(category_filter : str | None = None) -> list[Post]:
|
def get_posts(category_filter : str | None = None) -> list[Post]:
|
||||||
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
||||||
@ -58,10 +59,18 @@ def get_posts(category_filter : str | None = None) -> list[Post]:
|
|||||||
|
|
||||||
return reversed(ordered_posts)
|
return reversed(ordered_posts)
|
||||||
|
|
||||||
def get_status() -> str:
|
def read_status_file() -> list[str]:
|
||||||
with open(STATUS_FILE, 'r', encoding='utf-8') as file:
|
with open(STATUS_FILE, 'r', encoding='utf-8') as file:
|
||||||
statuses = file.readlines()
|
data = file.readlines()
|
||||||
|
|
||||||
|
result = []
|
||||||
|
for line in data:
|
||||||
|
if not (line == '\n' or line[0] == '#'):
|
||||||
|
result.append(line)
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
|
def get_status() -> str:
|
||||||
status = random.randint(0, len(statuses) - 1)
|
status = random.randint(0, len(statuses) - 1)
|
||||||
|
|
||||||
return markdown.markdown(statuses[status])
|
return markdown.markdown(statuses[status])
|
||||||
@ -231,6 +240,10 @@ def album_square(user_id, rows : int):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
statuses = read_status_file()
|
||||||
|
print(statuses)
|
||||||
|
|
||||||
if DEV:
|
if DEV:
|
||||||
app.run(port=PORT)
|
app.run(port=PORT)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -1,37 +1,75 @@
|
|||||||
Catchy Right?
|
# Project Moon
|
||||||
Everybody's lazy when they're tired
|
|
||||||
As long as there is delusion, there is hope
|
|
||||||
It's 510.
|
|
||||||
Mindful of the weary inkling that is lurking
|
|
||||||
Mortal traffic lights signaling when to stay or go
|
|
||||||
Cyber surgeon, Javascript person
|
|
||||||
Bone-dried swamplands swallow me
|
|
||||||
House of dust, land of bone
|
|
||||||
I ate dirt, I drank stone
|
|
||||||
Come on, snake, punish me
|
|
||||||
Drip, drip from the tap, don't slip on the drip
|
|
||||||
His name really is Tim.
|
|
||||||
Just wait until you see the 1 in 1000 message.
|
|
||||||
I'm open to suggestions on how to improve the look of the website
|
|
||||||
Open the curtains
|
Open the curtains
|
||||||
Don't miss a moment of this experiment
|
Don't miss a moment of this experiment
|
||||||
Needles
|
Needles
|
||||||
Sally forth Rocinante!
|
Sally forth Rocinante!
|
||||||
The multitude tightens its hold.
|
The multitude tightens its hold.
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
Check out [NEUPINK](https://neupink.bandcamp.com/album/swordflower-hills-killer-2)!
|
||||||
|
Solar Sect of Mystic Wisdom
|
||||||
|
~ Nuclear Fusion
|
||||||
|
His name really is Tim.
|
||||||
|
Just wait until you see the 1 in 1000 message.
|
||||||
|
I'm open to suggestions on how to improve the look of the website
|
||||||
|
As long as there is delusion, there is hope
|
||||||
|
It's 510.
|
||||||
|
Catchy Right?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Song Lyrics
|
||||||
|
|
||||||
|
# I’m in Your Mind by King Gizzard & The Lizard Wizard
|
||||||
|
Everybody's lazy when they're tired
|
||||||
|
|
||||||
|
# Straws In The Wind by King Gizzard & The Lizard Wizard
|
||||||
|
Mindful of the weary inkling that is lurking
|
||||||
|
Mortal traffic lights signaling when to stay or go
|
||||||
|
|
||||||
|
# Automation by King Gizzard & The Lizard Wizard
|
||||||
|
Cyber surgeon, Javascript person
|
||||||
|
|
||||||
|
# Gilgamesh by King Gizzard & The Lizard Wizard
|
||||||
|
Bone-dried swamplands swallow me
|
||||||
|
House of dust, land of bone
|
||||||
|
I ate dirt, I drank stone
|
||||||
|
Come on, snake, punish me
|
||||||
|
|
||||||
|
# The Dripping Tap by King Gizzard & The Lizard Wizard
|
||||||
|
Drip, drip from the tap, don't slip on the drip
|
||||||
|
|
||||||
|
# Face to Face by Daft Punk
|
||||||
It's amazing what you'll find face to face
|
It's amazing what you'll find face to face
|
||||||
It's not hard to go the distance / When you finally get involved face to face
|
It's not hard to go the distance / When you finally get involved face to face
|
||||||
|
|
||||||
|
# Touch by Daft Punk
|
||||||
A tourist in a dream / A visitor, it seems / A half-forgotten song / Where do I belong?
|
A tourist in a dream / A visitor, it seems / A half-forgotten song / Where do I belong?
|
||||||
|
|
||||||
|
# Magenta Mountian by King Gizzard & The Lizard Wizard
|
||||||
What do you mean ... You can't see it?
|
What do you mean ... You can't see it?
|
||||||
I don't believe you / your eyes deceive you / better check yourself in
|
I don't believe you / your eyes deceive you / better check yourself in
|
||||||
You will say I'm crazy / I will go on my way 'cause it's what I need
|
You will say I'm crazy / I will go on my way 'cause it's what I need
|
||||||
I'd cross a thousand seas just to prove I'm not mad
|
I'd cross a thousand seas just to prove I'm not mad
|
||||||
I thought I saw a statue blink, and a bird with no head, Land on a golden thread, I rub my eyes, What am I saying? There's nothing there
|
I thought I saw a statue blink, and a bird with no head, Land on a golden thread, I rub my eyes, What am I saying? There's nothing there
|
||||||
Solar Sect of Mystic Wisdom
|
|
||||||
~ Nuclear Fusion
|
# Armor-clad Faith by NAOKI, Arc System Works
|
||||||
Check out [NEUPINK](https://neupink.bandcamp.com/album/swordflower-hills-killer-2)!
|
|
||||||
I'm a fool, I know nothing / I take the role of a silly clown
|
I'm a fool, I know nothing / I take the role of a silly clown
|
||||||
All I do is embrace the wounded soul
|
All I do is embrace the wounded soul
|
||||||
|
|
||||||
|
# Love the Subhuman Self by AISHA, Jamison Boaz, Arc System Works (Guilty Gear Strive)
|
||||||
So carry on, love the subhuman self
|
So carry on, love the subhuman self
|
||||||
Break yourself inside out, she told me
|
Break yourself inside out, she told me
|
||||||
|
|
||||||
|
# Symphony by NAOKI, Arc System Works (Guilty Gear Strive)
|
||||||
We're just a quirky note in the symphony
|
We're just a quirky note in the symphony
|
||||||
|
|
||||||
|
# White Whale by Shadow Academy
|
||||||
So, silent tide / Tell me which face do I show the world / And which one do I hide?
|
So, silent tide / Tell me which face do I show the world / And which one do I hide?
|
||||||
|
|
||||||
|
# Intrasport by King Gizzard & The Lizard Wizard
|
||||||
|
Dreams that sew me up like sleeping with a needle
|
||||||
|
Those feelings that I had are building up to something
|
||||||
|
I feel a schism in the rhythm, now I'm running
|
||||||
|
My hair is liquifying
|
||||||
|
My taste buds are igniting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user