class Thread(db.Model): id = db.Column(db.Integer, primary_key = True) title = db.Column(db.String(100), nullable = False) date_posted = db.Column(db.DateTime, nullable = False, default = datetime.utcnow) category = db.Column(db.String(100),nullable = False) user_id = db.Column(db.Integer, db.ForeignKey('user.id'), nullable = False) posts = db.relationship('Post',backref='thread',lazy=True)
class Post(db.Model): id = db.Column(db.Integer, primary_key = True) date_posted = db.Column(db.DateTime, nullable = False, default = datetime.utcnow) content = db.Column(db.Text, nullable = False) user_id = db.Column(db.Integer, db.ForeignKey('user.id'), nullable = False) thread_id = db.Column(db.Integer, db.ForeignKey('thread.id'), nullable = False)
app.route('/main') def main(): page = request.args.get('page',1,type=int)
threads = Thread.query.order_by(Thread.date_posted.desc()).paginate(page=page, per_page=3) return render_template('main.html', threads=threads)
some help would greatly be appreciated!
submitted by theyeti_97 to flask [link] [comments]
2022.01.20 11:58 tarahamble What tips do you have for men to subtly show people they are not a threat?
2022.01.20 11:58 Par4theCourse2020 McConnell waves off voting concerns since Black people turn out as heavily as ‘Americans’
|submitted by Par4theCourse2020 to politics [link] [comments]|
2022.01.20 11:58 Kenankaya42 Good project
2022.01.20 11:58 Justaguy19426 Met a girl last night. What do you think?
I was at a local bar last night, during karaoke. I noticed this girl at a nearby table, that I’ve noticed many times before. So she’s probably seen me around.
She was sitting at the table where you right down your songs. So being a little bolder than usual I decided to flirt, “I don’t know what song to do, what should I do next?” She said “Garth Brooks.” I said “I don’t know any, how about Brooks & Dunn?” She said “yes!” and after a pretty damn good rendition if I do say so myself (everyone clapped) the next time I talked to her I said “How was Neon Moon?” I got a positive answer and I gave her a mildly drunk high five and we laughed.
After talking to my buddy about her I asked the bartender what she was drinking. So I walked up, gave her a drink and asked “what’s your name?” “Ashley” “would you be interested in exchanging numbers for a date?” “Yeah, we can.” She gave me her number, I sent her a text with my name. “my name’s ***** by the way, I don’t think I said that.” “No” She checked that she got my text, she did. she thanked me for the drink, I said you’re welcome “so I’ll call you this week.” “Yeah!” and went back to my table.
I caught she was a bit of a country girl and kicked some ass on the country songs I do. I let her be for the rest of the night.
I noticed she was leaving so I walked up and said “It was nice to meet you.” Went in for the hand shake and she came in straight for a hug. She said in my ear “Just text me.” “I will.”
Talked to my buddy about when I should text her, he said to text her that night. “It was nice to meet you. I get off work tomorrow around 6, I’ll text you then.” I thought it was a little redundant but he knows more than me.
So just sharing a story with a ray of hope that normal dating lives on. Also looking for general feedback on how you guys think I did. Thanks.
Edit: Sent a text after work the next day, suggesting dinner and karaoke after. Haven’t heard anything back from her. She’s a single mom to a 3 year old, and lost her significant other about 3 years ago to a heart attack.
submitted by Justaguy19426 to dating [link] [comments]
2022.01.20 11:58 j11esq41 Headed to Mexico in three weeks. Getting on the vibe with my new setup.
|submitted by j11esq41 to iOSsetups [link] [comments]|
2022.01.20 11:58 camelcabal1 The Beretta M1918 is actually a semiautomatic firearm, I have the source that claims that
The Beretta M1918 in Enlisted is playble as a fully automatic submachinegun, while in reality it is a semi-automatic carbine. At the current state this firearm is way OP and empties the magazines quickly, with no possibility of the semi-automatic fire; it also has modeled the folding bayonet, but with no possibility of using it. If you want to support go and add a comment to this report: https://forum.enlisted.net/t/beretta-... So the suggestion can go to the developers of Darkflow so they can review it,. You can find in the forum post the original source that prooves the Beretta M1918 fires semi-automatic only., it's an Italian Army manual from 1921: Nozioni sulle armi portatili, sulle artiglierie e sul tiro.
Here's a video I made about how the Beretta M1918 would look if historically correct: https://youtu.be/JLZJAH4lSsU
submitted by camelcabal1 to enlistedgame [link] [comments]
2022.01.20 11:58 NFT-Calendar StarBase
|submitted by NFT-Calendar to nftscalendar [link] [comments]|
2022.01.20 11:58 Lisaalinaaaaa Can someone tell me if that’s an authentic SoM T-shirt from 1990?
|submitted by Lisaalinaaaaa to GothStyle [link] [comments]|
2022.01.20 11:58 viniciowus [Bug Report] Instander crashing every time after update to OneUi 4.0 Android 12
|submitted by viniciowus to Instander [link] [comments]|
2022.01.20 11:58 RedPacketSecurity LockBit 2.0 Ransomware Victim: izo[.]es
|submitted by RedPacketSecurity to RedPacketSecurity [link] [comments]|
2022.01.20 11:58 Tmoore0288 🚨 EXCL: Another Premier League club has made a major offer to Sevilla & Diego Carlos to sign the Brazil centre-back. Approach understood to have come form a London club but not thought to be Arsenal.
|submitted by Tmoore0288 to coys [link] [comments]|
2022.01.20 11:58 linuxbuild Biggest desktop of the day with Linux: Acer Aspire TC-390
| HW: AMD Ryzen 3 3200G with Radeon Vega Graphics, AMD graphics, one memory module (Kingston Module 8GB), 2 drives (SAMSUNG MZVLQ256HAJD-00000 256GB, WDC WD10EZRZ-00HTKB0 1TB) and 48 more devices.|
submitted by linuxbuild to Hardware_for_Linux [link] [comments]
2022.01.20 11:58 punking94 Best decks for the ban list?
I’ve been away from the game for a couple of years. I only ever really played noble knights (original not infernoble) back in the day but I do enjoy BA, hero, true king Dino, cyber dragon, shaddoll and pen magicians.
Are any of these decks still viable in the game now with this ban list? Or are there any variations of any of these decks that are nice and competitive to start things off for me?
submitted by punking94 to masterduel [link] [comments]
2022.01.20 11:58 Staghoff Duo Team for Ubers
My brother and I are finally readying to tackle the Ubers together but I was curious on what our best build options would be to succeed. I have a 91 pally running hammers which I was assuming I’d make as a smiter. I do have a HoZ and just made a grief.
My brother has a barbarian and sorceress both in the upper 80s but the sorc is probably geared better, plus I can lend him the majority of my hammerdin gear. What would be the best option for him? He’s currently just running a blizzard build in full Tals. Is there a better build for him to support a smiter or would it be advantageous for him to do something else and I support him with a different pally build?
submitted by Staghoff to diablo2 [link] [comments]
2022.01.20 11:58 RedPacketSecurity LockBit 2.0 Ransomware Victim: bannerbuzz[.]com
|submitted by RedPacketSecurity to RedPacketSecurity [link] [comments]|