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 +12 -1
- {my_cloud_devops_consulting-1.1.202507010103.dist-info → my_cloud_devops_consulting-1.1.202507022308.dist-info}/METADATA +1 -1
- my_cloud_devops_consulting-1.1.202507022308.dist-info/RECORD +5 -0
- my_cloud_devops_consulting-1.1.202507010103.dist-info/RECORD +0 -5
- {my_cloud_devops_consulting-1.1.202507010103.dist-info → my_cloud_devops_consulting-1.1.202507022308.dist-info}/WHEEL +0 -0
- {my_cloud_devops_consulting-1.1.202507010103.dist-info → my_cloud_devops_consulting-1.1.202507022308.dist-info}/top_level.txt +0 -0
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
|
|
@@ -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,,
|
File without changes
|