-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: next version handling on mutli branch building Signed-off-by: Martin Buchleitner <[email protected]> --------- Signed-off-by: Martin Buchleitner <[email protected]> Co-authored-by: Edmund Haselwanter <[email protected]>
- Loading branch information
1 parent
4ae48c0
commit 0179f17
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
## 1.0.1 (2023-03-20) | ||
|
||
#### Bug Fixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
from flask import Flask | ||
import os | ||
import socket | ||
import datetime | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
def hello(): | ||
|
||
now = datetime.datetime.now() | ||
html = "<h3>Hello {name}!</h3>" \ | ||
"<b>Hostname:</b> {hostname}<br/>" | ||
return html.format(name=os.getenv("NAME", "world"), hostname=socket.gethostname()) | ||
"<b>Hostname:</b> {hostname}<br/>" \ | ||
"<b>Current Date:</b> {currentdate}<br/>" | ||
return html.format(name=os.getenv("NAME", "world"), | ||
hostname=socket.gethostname(), | ||
currentdate=str(now)) | ||
|
||
if __name__ == "__main__": | ||
app.run(host='0.0.0.0', port=80) |