Skip to content

Commit

Permalink
updated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsahMohammad committed May 1, 2024
1 parent eeded97 commit cb174dd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion cloud/child.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Child.py
import socket
import threading
from logger import Logger
Expand Down
1 change: 0 additions & 1 deletion cloud/master.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Parent.py
import socket
import threading
from logger import Logger
Expand Down
10 changes: 6 additions & 4 deletions src/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@


class Logger:
def __init__(self, show_logs=False):
def __init__(self, show_logs=False, author = None):
self.show_logs = show_logs
self.logs = []
self.author = author

def log(self, content, id=None, **kwargs):
def log(self, content, author=None, **kwargs):
author = self.author if author is None else author
log_ = f"{time.strftime('%H:%M:%S')} : "
if id:
log_ += f"{id} : "
if author:
log_ += f"{author} : "

log_ += f"{content} | {kwargs}"

Expand Down
7 changes: 6 additions & 1 deletion templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<style>
body {
background-color: rgb(181, 181, 181);
background-color: rgb(25, 25, 25);
}

.sevillana-regular {
Expand Down Expand Up @@ -61,6 +61,11 @@
height: 90%;
width: 100%;
}

a{
color: white;
}

</style>
</head>
<body>
Expand Down

0 comments on commit cb174dd

Please sign in to comment.