Bart is learning Html & Css
Posted the 23/04/2024 | 09:41
0 Likes | 0 Comments
1 <div className="column ">
2 <p className="title has-text-green is-4">{`${user.username} ${category} ${categoryContent}`}</p>
3 <p className="has-text-white is-4">{`Posted the ${post_date}`}</p>
4 </div>
Bart is developing An app to piss Homer off
Posted the 23/04/2024 | 09:43
0 Likes | 0 Comments
Bart is feeling Helplesss
Posted the 23/04/2024 | 09:45
0 Likes | 0 Comments
1 {post?.image && <div className="card-image">
2 <figure className="image is-square" >
3 <img
4 src={image}
5 alt="Placeholder image"
6 />
7 </figure>
8 </div>}
9
Homer is developing A website for everyone hating flenders
Posted the 23/04/2024 | 09:53
0 Likes | 0 Comments
Homer is feeling annoyed
Posted the 23/04/2024 | 09:57
0 Likes | 1 Comments
Homer is learning to build an donut API
Posted the 23/04/2024 | 09:54
0 Likes | 0 Comments
Marge is attending Coding boot camp at GA
Posted the 23/04/2024 | 11:13
0 Likes | 0 Comments
Marge is feeling Proud
Posted the 23/04/2024 | 11:15
0 Likes | 0 Comments
Marge is feeling in the pit of despair
Posted the 23/04/2024 | 11:17
0 Likes | 0 Comments
1@router.route("/posts/<int:post_id>", methods=["DELETE"])
2@secure_route
3def delete_single_post(post_id):
4 post = PostModel.query.get(post_id)
5 if not post:
6 return jsonify({"message": "post not found"}, HTTPStatus.NOT_FOUND)
7
8 post.remove()
9 return jsonify({"error": "post deleted"})
Lisa is attending Climate change in development convention
Posted the 23/04/2024 | 11:22
0 Likes | 0 Comments
Lisa need help with Python
Posted the 23/04/2024 | 11:24
0 Likes | 0 Comments
1
2from app import db
3
4
5class CommentModel(db.Model):
6
7 __tablename__ = "comments"
8 id = db.Column(db.Integer, primary_key=True, unique=True)
9 content = db.Column(db.Text, nullable=False)
10 comment_date = db.Column(db.Text, nullable=False)
11 code = db.Column(db.Text, nullable=True)
12
13 from models.posts_model import PostModel
14 post_id = db.Column(db.Integer, db.ForeignKey('posts.id'), nullable=False)
15 post = db.relationship(PostModel, backref="comment")
16
17 from models.users_model import UserModel
18 user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
19 user = db.relationship(UserModel, backref="comment")
20
21 def save(self):
22 db.session.add(self)
23 db.session.commit()
24
25 def remove(self):
26 db.session.delete(self)
27 db.session.commit()
Lisa is feeling accomplished
Posted the 23/04/2024 | 11:26
0 Likes | 0 Comments
Florent is attending GE SEB 78 last ever class
Posted the 23/04/2024 | 15:25
1 Likes | 0 Comments
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 <title>Codestream</title>
8 </head>
9 <body>
10 <div id="root"></div>
11 <script src="https://widget.cloudinary.com/v2.0/global/all.js" type="text/javascript"></script>
12 <script type="module" src="/src/main.tsx"></script>
13
14 </body>
15</html>
16