Compare commits

..

No commits in common. "main" and "nov12" have entirely different histories.
main ... nov12

6 changed files with 721 additions and 727 deletions

View File

@ -314,7 +314,6 @@ def lpp_audit(msg):
script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2
script_json["type"] = "script-json"
script_json["screenplay_name"] = str(name_script)
scriptconversion["script-json"] = script_json
print("blockchain script conversion 5.2")

File diff suppressed because it is too large Load Diff

View File

@ -45,15 +45,13 @@ def certificateGenrate(name,file_from,Hash,projectname="NAN",matic="0"):
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
html = template.render(context)
options = {
'page-size': 'A4',
'zoom': 12.5,
'page-size': 'A5',
'zoom': 3.5,
'margin-top': '0.0in',
'margin-right': '0.0in',
'margin-bottom': '0.0in',
'margin-left': '0.0in',
'enable-local-file-access': '',
'orientation': 'Landscape',
'page-height': '11in',
}
pdfkit.from_string(
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)

View File

@ -13,30 +13,30 @@
</style>
</head>
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px; ">
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px;">
<div style="box-shadow: 0px 4px 27px 0px #00000040;">
<img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%; height: 240px;" >
<img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%;">
<table style="border-collapse: collapse;
display: flex;
justify-content: center;
margin: 0px 0 50px 0px;height: 720px;">
margin: 0px 0 50px 0px">
<tr>
<td rowspan="4" style="text-align: center;">
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px;
width: 30px;
position: relative;
top: -70px; padding: 0 20px;">
</td>
<td>
<h2 style="font-family: Poppins;
font-size: 26px;
font-size: 18px;
font-weight: 600;
text-align: center;
color: #252525;">Blockchain Protection Certificate no.{{id}}
</h2>
</td>
<td rowspan="4" style="text-align: center;">
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px;
width: 30px;
position: relative;
top: 70px; padding: 0 20px;">
@ -44,28 +44,28 @@
</tr>
<tr>
<td style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 400;
text-align: left;
text-align: center;
color: #252525;
line-height: 50px;
line-height: 32px;
">This is to certify that
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">{{File_name}}
color: 252525;">{{File_Name}}
</span>
uploaded by
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">{{name}}
</span>
/ created by
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
@ -74,7 +74,7 @@
has been
uploaded on Polygon Blockchain on
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
@ -82,22 +82,23 @@
</span>
for which My Next Film has paid
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;"> {{Matic}}
</span> MATIC. <br>This is also to certify that the above file is stored and can be accessed using the
</span> MATIC. This is
also to certify that the above file is accessible at the
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
transaction id {{hash}}
transaction {{hash}}
</span>
only through the
Only Through the
combination of Public Key and Private Key exclusively known to the
<span style="font-family: Poppins;
font-size: 24px;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
@ -108,18 +109,18 @@
<tr>
<td>
<p style="font-family: Poppins;
font-size: 20px;
font-size: 12px;
font-weight: 500;
text-align: left;
color: #252525;
margin-bottom: -10px;
">Note:</p>
<p style="font-family: Poppins;
font-size: 18px;
font-size: 10px;
font-weight: 400;
text-align: left;
color: #616161;
line-height:44px;
line-height:22px;
">The file resides on Decentralized Inter Planetary File System Storage. The location of the file
is encrypted and stored on Polygon Blockchain forever. The content is Transparent,
Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and
@ -134,21 +135,21 @@
</div>
<div>
<p style="font-family: Poppins;
font-size: 20px;
font-size: 12px;
font-weight: 600;
text-align: left;
color: #EE3C4D;
line-height: 0px;
">Disclaimer:-</p>
<p style="font-family: Poppins;
font-size: 18px;
font-size: 10px;
font-weight: 400;
text-align: left;
color: #616161;
line-height: 44px;
line-height: 22px;
">
<span style="font-family: Poppins;
font-size: 20px;
font-size: 12px;
font-weight: 600;
text-align: left;
color: #252525;
@ -167,7 +168,7 @@
<div style="width: 100%; background: #33B0CA; height: 19px;"></div>
<div style="width: 100%; background: #33B0CA; height: 15px;"></div>
</div>
</body>

View File

@ -1 +0,0 @@
dfdf

View File

@ -338,7 +338,6 @@ def run_audit_in_counter(msg):
script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2
script_json["type"] = "script-json"
script_json["screenplay_name"] = str(screenplay_name)
audit_data["script-json"] = script_json
print("data_uploaded")
except Exception as exp:
@ -489,7 +488,6 @@ def run_audit_in_counter(msg):
script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2
script_json["type"] = "script-json"
script_json["screenplay_name"] = str(screenplay_name)
audit_data["script-json"] = script_json
print("data_uploaded")
except Exception as exp: