Skip to content

Commit

Permalink
fixed small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
KJStick committed Mar 24, 2023
1 parent 488dc12 commit 2ed706e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"**CML show server utilization** > show current CPU and Memory usage\n",
"**CML stop lab** > stop labs of your choice\n",
"**Request IP** > allocates a static ip address for CML\n",
"**List my IPs** > lists static IPs allocated to you for CML"
"**List my IPs** > lists static IPs allocated to you for CML\n",
"**Create AWS account** > create AWS COLAB account\n",
"**Create VPN account** > create an AnyConnect to COLAB VPN account\n",
"**Create AWS key** > create aws access key\n",
Expand Down
2 changes: 1 addition & 1 deletion features/awx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ async def list_my_ips(activity):
# get all IPs
ip_addresses = response["Items"][0]["ip_addresses"]
markdown = ""
for ip_address, ip_data in ip_addresses:
for ip_address, ip_data in ip_addresses.items():
last_seen = (
datetime.today() - datetime.fromtimestamp(int(ip_data["date_last_used"]))
).days
Expand Down

0 comments on commit 2ed706e

Please sign in to comment.