my-cloud-devops-consulting 1.1.202507010103__py3-none-any.whl → 1.1.202507022308__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
app.py CHANGED
@@ -171,7 +171,18 @@ def assessment():
171
171
  result = f"{name} needs more preparation ❌"
172
172
  return render_template('assessment.html', result=result)
173
173
 
174
-
174
+ # 👇 Add this before the final block
175
+ @app.route('/subscribe', methods=['POST'])
176
+ def subscribe():
177
+ email = request.form.get('email')
178
+ if email:
179
+ db.subscribers.insert_one({'email': email})
180
+ print(f"New subscriber: {email}")
181
+ flash('Thank you for subscribing!')
182
+ else:
183
+ flash('Please enter a valid email address.')
184
+ return redirect(url_for('home'))
185
+ # 👇 Add this before the final block
175
186
  if __name__ == '__main__':
176
187
  app.run(debug=True, host='0.0.0.0', port=50)
177
188
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: my-cloud-devops-consulting
3
- Version: 1.1.202507010103
3
+ Version: 1.1.202507022308
4
4
  Summary: This is my consulting website for Cloud & DevOps services.
5
5
  Home-page: https://github.com/Betrand1999/project-root
6
6
  Author: Betrand Mutagha
@@ -0,0 +1,5 @@
1
+ app.py,sha256=9YF9mlQAUnMUuN3LYCpVmyC9P3y3Nf_fpXl5SIPH_TE,6865
2
+ my_cloud_devops_consulting-1.1.202507022308.dist-info/METADATA,sha256=eTBPaK2PECA7ykMWAkOUYG-WiLsIcjM6GnSvGB49ITU,3256
3
+ my_cloud_devops_consulting-1.1.202507022308.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ my_cloud_devops_consulting-1.1.202507022308.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
5
+ my_cloud_devops_consulting-1.1.202507022308.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- app.py,sha256=Es_ewSfuHN5ociXgqvyaOstkdQyE71_Urcu6vNajFRY,6438
2
- my_cloud_devops_consulting-1.1.202507010103.dist-info/METADATA,sha256=KTjSBZsU7yctlg0nrHPmpx5yq0PdvWvpG14aHIA8kXs,3256
3
- my_cloud_devops_consulting-1.1.202507010103.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- my_cloud_devops_consulting-1.1.202507010103.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
5
- my_cloud_devops_consulting-1.1.202507010103.dist-info/RECORD,,