Update IT17163682/UploadedCV/Ana.docx, IT17163682/UploadedCV/Bastian.docx,...

Update IT17163682/UploadedCV/Ana.docx, IT17163682/UploadedCV/Bastian.docx, IT17163682/UploadedCV/Mahela.docx, IT17163682/UploadedCV/Sangakara.docx, IT17163682/UploadedCV/Virat Kholi.docx, IT17163682/UploadedCV/upload_files/upload.py, IT17163682/UploadedCV/upload_files/templates/mystyle.css, IT17163682/UploadedCV/upload_files/templates/upload_file.html, IT17163682/UploadedCV/upload_files/templates/script.js, IT17163682/UploadedCV/upload_files/templates/.idea/.gitignore, IT17163682/UploadedCV/upload_files/templates/.idea/misc.xml, IT17163682/UploadedCV/upload_files/templates/.idea/modules.xml, IT17163682/UploadedCV/upload_files/templates/.idea/templates.iml, IT17163682/UploadedCV/upload_files/templates/.idea/workspace.xml, IT17163682/UploadedCV/upload_files/templates/.idea/inspectionProfiles/Project_Default.xml, IT17163682/UploadedCV/upload_files/templates/.idea/inspectionProfiles/profiles_settings.xml files
parent 8df0bc25
# Default ignored files
/shelf/
/workspace.xml
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="E305" />
<option value="E402" />
<option value="E302" />
<option value="W191" />
<option value="E265" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="progress.RankingSYstem" />
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
<component name="PyCharmProfessionalAdvertiser">
<option name="shown" value="true" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/templates.iml" filepath="$PROJECT_DIR$/.idea/templates.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="1b6cec43-011d-497e-a5a2-c46c52c5d7ec" name="Default Changelist" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="HTML File" />
</list>
</option>
</component>
<component name="ProjectId" id="1rnUVkrOybKnXAxmr3qfZyiaKNB" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="DefaultHtmlFileTemplate" value="HTML File" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
</component>
<component name="RunManager" selected="Python.upload">
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
<module name="templates" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="upload" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="templates" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/../upload.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="Python.upload" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="1b6cec43-011d-497e-a5a2-c46c52c5d7ec" name="Default Changelist" comment="" />
<created>1619611372389</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1619611372389</updated>
</task>
<servers />
</component>
</project>
\ No newline at end of file
body, html {
height: 100%;
}
.bg {
/* The image used */
background-image: url("https://static.ranker.com/img/app/ranker_defaultImage.png");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.chart {
text-align: center;
margin: auto;
}
.row {
margin-bottom: 150px;
}
h1 {
text-align: center;
margin-bottom: 80px;
}
\ No newline at end of file
//var x = 80
let myDoughnutChart = document.getElementById("myChart").getContext('2d');
let chart1 = new Chart(myDoughnutChart, {
type: 'doughnut',
data: {
labels: ['Skills'],
datasets: [ {
data: [x, (100-x)],
backgroundColor: ['#49A9EA', '#e3e3e3']
}]
},
options: {
title: {
text: "Skills",
display: true
}
}
});
let myDoughnutChart2 = document.getElementById("myChart2").getContext('2d');
let chart2 = new Chart(myDoughnutChart2, {
type: 'doughnut',
data: {
labels: ['Extraversion'],
datasets: [ {
data: [x, (100-x)],
backgroundColor: ['#68ff30', '#e3e3e3']
}]
},
options: {
title: {
text: "Etraversion",
display: true
}
}
});
<!doctype html>
<title></title>
<head>
<meta charset="utf-8">
<title>Applicant Ranking</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="mystyle.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</head>
<style>
body, html {
height: 100%;
}
.bg {
/* The image used */
background-image: url("https://wallpapercave.com/wp/wp4354333.jpg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.chart {
text-align: center;
margin: auto;
}
.row {
margin-bottom: 150px;
}
h1 {
text-align: center;
margin-bottom: 80px;
}
.button {
padding: 10px 17px;
font-size: 20px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background-color: #ff264b;
border: none;
border-radius: 15px;
}
.button:hover {background-color: #ff5e79}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.container{
top: 50%;
left: 50%
transform: translate(-50%,-50%)
position: absolute;
}
.upload-box{
font-size: 16px;
background: white;
border-radius: 50px;
width: 350px;
outline: none;
}
::-webkit-file-upload-button{
color: white;
background: black;
padding: 10px;
border: none;
border-radius: 20px;
outline: none;
}
::-webkit-file-upload-button:hover{
background: #a6a2a3;
}
</style>
<body class="bg" >
<br>
<div class="container">
<div class="row">
<div class="col-6 chart">
<div class="column">
<canvas id="myChart3" width="10" height="10"></canvas>
<h5 id="demo"></h5>
<h2 style="color:white">{{msg}}</h2>
<br>
<form action="/" method="POST" enctype="multipart/form-data" class="container">
<input type="file" name="filename" multiple class="upload-box">
<br><br>
<input type="submit" value="Upload" class="button">
</form>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
from flask import Flask, render_template, request
import os
app = Flask(__name__)
app.config['UPLOAD_PATH'] = "C:/Users/User/Desktop/New folder (12)/Applicant_Ranker - Copy/UploadedCV"
#app.config['UPLOAD_PATH'] = "C:/Users/User/PycharmProjects/Applicant_Ranker/UploadedCV"
@app.route("/", methods=['GET', 'POST'])
def upload_file():
if request.method == "POST":
for f in request.files.getlist('filename'):
#f = request.files['filename']
f.save(os.path.join(app.config['UPLOAD_PATH'], f.filename))
return render_template("upload_file.html", msg="Files are successfully uploaded")
return render_template("upload_file.html", msg="Upload CVs here.")
if __name__ == '__main__':
app.run(debug=True)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment