andreped commited on
Commit
f610f97
·
1 Parent(s): 816442c

Fixed linting

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. postly/common/css.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ client = SingletonPostlyClient.get_instance()
9
  # Custom CSS for Twitter-like feel
10
  st.markdown(
11
  get_theme(),
12
- unsafe_allow_html=True
13
  )
14
 
15
  # Initialize user session state
@@ -131,12 +131,15 @@ def get_all_posts():
131
  all_posts.append((user_name, post))
132
  sorted_posts = sorted(all_posts, key=lambda x: x[1].timestamp)[::-1]
133
  for user_name, post in sorted_posts:
134
- st.markdown(f"""
 
135
  <div class="post-container">
136
  <div class="post-header">{user_name}</div>
137
  <div class="post-content">{post.content}</div>
138
  </div>
139
- """, unsafe_allow_html=True)
 
 
140
 
141
 
142
  def main():
 
9
  # Custom CSS for Twitter-like feel
10
  st.markdown(
11
  get_theme(),
12
+ unsafe_allow_html=True,
13
  )
14
 
15
  # Initialize user session state
 
131
  all_posts.append((user_name, post))
132
  sorted_posts = sorted(all_posts, key=lambda x: x[1].timestamp)[::-1]
133
  for user_name, post in sorted_posts:
134
+ st.markdown(
135
+ f"""
136
  <div class="post-container">
137
  <div class="post-header">{user_name}</div>
138
  <div class="post-content">{post.content}</div>
139
  </div>
140
+ """,
141
+ unsafe_allow_html=True,
142
+ )
143
 
144
 
145
  def main():
postly/common/css.py CHANGED
@@ -33,4 +33,4 @@ def get_theme():
33
  color: #14171A;
34
  }
35
  </style>
36
- """
 
33
  color: #14171A;
34
  }
35
  </style>
36
+ """