Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaclawik committed Sep 27, 2022
1 parent a154bd1 commit b7dba74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ template = DashboardTemplate
- Default -> **DashboardTemplate**
- Printer-Friendly -> **DashboardReportModeTemplate**

<p align="right"></p>
<p align="right"></p>
7 changes: 3 additions & 4 deletions sumotool.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
# initialize configparser
config = configparser.ConfigParser()
config.read("config.ini")
version = config['API']['version']
sections = config.sections()
report_num = (len(sections) - 1)
# initialize date and time, as well as declare date and time vars
now = datetime.now()
c_date = now.strftime("%y/%m/%d")
c_time = now.strftime("%H:%M:%S")
f_datetime = now.strftime("%y%m%d-%H%M%S")
print("SumoLogic Report Tool 1.3.1")
print("SumoLogic Report Tool " + version)
print("The date is " + c_date + " and the time is currently " + c_time)

# establish API connection
Expand Down Expand Up @@ -87,8 +88,6 @@ def do_jobs():
keepGoing = False
print("\n|--< Jobs Finished >--|")



def rename_and_move():
for x in range(0, report_num):
# generate the snapshot
Expand All @@ -110,4 +109,4 @@ def rename_and_move():
print("\nSUCCESS: The Panel Report '" + filename + "' has been saved")

if __name__ == "__main__":
main()
main()

0 comments on commit b7dba74

Please sign in to comment.