Skip to content

Commit 3efcb1d

Browse files
committed
add .cnab to .gitignore
1 parent 36e43f1 commit 3efcb1d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ docs/_build/
5353
# PyBuilder
5454
target/
5555

56-
.idea/
56+
.idea/
57+
58+
# Porter
59+
.cnab/
60+

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import socket
3+
import time
34

45
from flask import Flask, escape, json, request
56
from redis import Redis, RedisError
@@ -23,13 +24,15 @@ def hello():
2324
"<b>Hostname:</b> {hostname}<br/>"
2425
"<b>Visits:</b> {visits}<br/>"
2526
"<b>File:</b> {file}<br/>"
27+
"<b>Modified:</b> {date}<br/>"
2628
"<b>Environ:</b> <pre>{environ}</pre>"
2729
)
2830
return tmpl.format(
2931
name=os.getenv("NAME", "world"),
3032
hostname=socket.gethostname(),
3133
visits=visits,
3234
file=__file__,
35+
date=time.ctime(os.path.getmtime(__file__)),
3336
environ=escape(info),
3437
)
3538

0 commit comments

Comments
 (0)