From f38df730f62c8bb1bbe79ef5efcbf693a53f017e Mon Sep 17 00:00:00 2001 From: srivatsav gunisetty Date: Sun, 22 Oct 2017 11:48:40 +0530 Subject: [PATCH 1/2] Improved the naming convention in getcode.php --- getcode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getcode.php b/getcode.php index 533dfe8..c714133 100644 --- a/getcode.php +++ b/getcode.php @@ -1,8 +1,8 @@ Date: Sun, 22 Oct 2017 11:52:24 +0530 Subject: [PATCH 2/2] Improved the naming conevention in get.py --- get.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/get.py b/get.py index 62af317..73cdf0b 100644 --- a/get.py +++ b/get.py @@ -1,8 +1,8 @@ import os import sys import requests -filename = sys.argv[1] -password = str(raw_input("Enter the password for the file")) +filename = sys.argv[1] +password = str(raw_input("Enter the file's password: ")) if (password == ""): password = "null" r = requests.post("http://sharecode.co.nf/getcode.php?filename="+filename+"&password="+password+"&getname=true") @@ -15,12 +15,10 @@ for i in os.listdir(os.getcwd()): if (i == localname): print "A file with the name " + localname + " already exists" - newname = str(raw_input("Enter new file name ")) + newname = str(raw_input("Enter the newname for the file: ")) if (newname != ""): localname = newname break file = open(localname,'w+') file.write(r.text) file.close() - -