Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
75f9c99
Fixed #1 sign up doesnt work
krishnasaurabh Nov 19, 2021
274c90c
Fixed the navigation bar issue
rhnprabhune Nov 23, 2021
ca03772
Fixed #10 add new application to any of the status will not actually …
krishnasaurabh Nov 26, 2021
b8c767d
Merge pull request #8 from ramyasaimullapudi/navbarIssue
rhnprabhune Nov 26, 2021
8487b8a
Fixed a small navigation issue for login
rhnprabhune Nov 26, 2021
e758f05
Merge pull request #11 from ramyasaimullapudi/edit_profile
rhnprabhune Nov 26, 2021
54f2443
Fixed #13 added some css and implemented change status
krishnasaurabh Nov 26, 2021
385b0e4
Fixed #14 implemented delete feature
krishnasaurabh Nov 26, 2021
134fd20
implemented edit feature
krishnasaurabh Nov 27, 2021
f16e0d8
fixed view more
krishnasaurabh Nov 27, 2021
a73dac2
Added functionality to all the cards
krishnasaurabh Nov 27, 2021
45d80b4
Merge branch 'main' into editapplication
krishnasaurabh Nov 27, 2021
b39d0db
Merge pull request #15 from ramyasaimullapudi/editapplication
rhnprabhune Nov 27, 2021
7b0cf48
Fixed navigation issue
rhnprabhune Nov 27, 2021
39910be
requirements
rhnprabhune Nov 27, 2021
11b8bd6
Reverting changes to requirement.txt
rhnprabhune Nov 27, 2021
e3f2ed4
Edit profile functionality has been implemented
rhnprabhune Nov 27, 2021
1ee64c4
Merge pull request #19 from ramyasaimullapudi/edit_profile
rhnprabhune Nov 27, 2021
fd3bc76
Delete LICENSE
ramyasaimullapudi Nov 28, 2021
1c8f260
Create LICENSE
ramyasaimullapudi Nov 28, 2021
3a8c297
Update README.md
ramyasaimullapudi Nov 28, 2021
7955b6a
Update README.md
ramyasaimullapudi Nov 28, 2021
dfea267
Update README.md
ramyasaimullapudi Nov 28, 2021
aacbd82
Issue17:CreatedBasicEmailFramework
Nov 29, 2021
21b630d
Merge pull request #26 from ramyasaimullapudi/email_framework
LakshmiSwethaGavini Nov 29, 2021
f56db0a
Changed SQL connection string
krishnasaurabh Nov 29, 2021
f72aebc
EmailFramework_ParameterChanges
Nov 29, 2021
c290c7a
Merge pull request #28 from ramyasaimullapudi/email_framework
LakshmiSwethaGavini Nov 29, 2021
ceb8f75
EmailFramework_RemoveTestCode
Nov 29, 2021
becfdad
Merge pull request #29 from ramyasaimullapudi/email_framework
LakshmiSwethaGavini Nov 29, 2021
5e8d0bc
AddApplication_EmailSent
Nov 29, 2021
099e549
Merge pull request #30 from ramyasaimullapudi/emailframework_integration
LakshmiSwethaGavini Nov 29, 2021
04d39f6
EmailFramework_ChangeStatus
Nov 29, 2021
a24fc36
Merge pull request #31 from ramyasaimullapudi/email_framework
LakshmiSwethaGavini Nov 29, 2021
3fec669
SendEMail_ChangeStatus
Nov 29, 2021
26533b7
Merge pull request #32 from ramyasaimullapudi/emailframework_integration
LakshmiSwethaGavini Nov 29, 2021
e79dbb2
EditApplicationTest
Nov 29, 2021
95996b3
Merge pull request #34 from ramyasaimullapudi/HomeControllerTest
LakshmiSwethaGavini Nov 29, 2021
0dd401c
EditProfileTest
Nov 29, 2021
57c50f1
Fixes #21 and Fixes the logout bug
rhnprabhune Dec 1, 2021
74f3d67
Modal titles fixed #37
rhnprabhune Dec 1, 2021
2ef2fdd
Updated .gitignore
arjunptm Dec 3, 2021
7df6577
Merge branch 'main' of github.com:ramyasaimullapudi/WolfTrackPlus
arjunptm Dec 3, 2021
40739b2
Fixed formatting to meet black standards
arjunptm Dec 3, 2021
52cac7a
Added pytest and codecov report generation to actions
arjunptm Dec 3, 2021
7c7ae81
Added black format checker
arjunptm Dec 3, 2021
7c49877
fixed test path
arjunptm Dec 3, 2021
6de513a
Added readme badges
arjunptm Dec 3, 2021
4acfac1
changed actions act-on branches
arjunptm Dec 3, 2021
a1a90ce
Merge branch 'main' of github.com:ramyasaimullapudi/WolfTrackPlus int…
rhnprabhune Dec 3, 2021
93c6a75
Reverted changes
rhnprabhune Dec 3, 2021
4ff5ec4
Merge pull request #36 from ramyasaimullapudi/logout_func
krishnasaurabh Dec 3, 2021
27f6033
Update README.md
rhnprabhune Dec 3, 2021
59c9462
Update README.md
rhnprabhune Dec 3, 2021
2a4d6ba
Merged main to gh_fix branch
arjunptm Dec 3, 2021
a75347e
Merge pull request #40 from ramyasaimullapudi/gh_actions_fix
arjunptm Dec 3, 2021
c00d1ad
Fixes #43 failing test cases
arjunptm Dec 3, 2021
05f7de7
Added scrollbars to the modals
arjunptm Dec 3, 2021
aa2e918
Merge pull request #24 from ramyasaimullapudi/add-license-1
ramyasaimullapudi Dec 4, 2021
eff4469
Create CODE_OF_CONDUCT.md
ramyasaimullapudi Dec 4, 2021
0207358
update information in contributing.md
ramyasaimullapudi Dec 4, 2021
0ea5f03
adding one test case for positive
ramyasaimullapudi Dec 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/BlackFormatChecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# GitHub Action that uses Black to reformat the Python code in an incoming pull request.
# If all Python code in the pull request is compliant with Black then this Action does nothing.
# Othewrwise, Black is run and its changes are committed back to the incoming pull request
# https://github.com/cclauss/autoblack

name: Black Format Checker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Black
run: pip install black
- name: Run black --check .
run: black --check .
18 changes: 8 additions & 10 deletions .github/workflows/main.yml → .github/workflows/Build Status.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application
name: Build Status

on:
push:
Expand All @@ -23,14 +23,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
- name: Generate coverage report
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pip install pytest
pip install pytest-cov
python -m pytest UnitTesting/* --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -444,3 +444,13 @@ dmypy.json
# Cython debug symbols
cython_debug/

# Text editor files
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
himanshu199586@gmail.com.
ramyasaimullapudi@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Please note we have a code of conduct, please follow it in all your interactions

## Code of Conduct

This project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [himanshu199586@gmail.com](mailto:himanshu199586@gmail.com).
This project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [ramyasaimullapudi@gmail.com](mailto:ramyasaimullapudi@gmail.com).

## Pull Request Process

Expand All @@ -24,7 +24,7 @@ This project and everyone participating in it is governed by the [Code of Conduc

1. Before creating a bug report, double check with the existing list if the bug is already reported.
2. In the event of the bug not being reported, communicate the issue with the owners of this repository via any suitable method of communication (preferrably via email). Remember to include as many details as possible including and not limiting to various test cases or scenarios that helped identify the issue. This information could help us resolve the issue faster.
3. Fill out [the Bug Report template](https://github.com/Himanshuu-Gupta/WolfTrack/blob/main/issue_templates/Bug_Report.md):
3. Fill out [the Bug Report template](https://github.com/ramyasaimullapudi/WolfTrackPlus/blob/main/issue_templates/Bug_Report.md):
* How can the problem be reproduced?
* Is this problem a recent observation?
* What might have triggered the problem?
Expand All @@ -33,5 +33,5 @@ This project and everyone participating in it is governed by the [Code of Conduc


## Suggesting Enhancements
Fill in [the Feature Request template](https://github.com/Himanshuu-Gupta/WolfTrack/blob/main/issue_templates/Feature_Request.md), including the steps that you imagine you would take if the feature you're requesting existed.
Fill in [the Feature Request template](https://github.com/ramyasaimullapudi/WolfTrackPlus/blob/main/issue_templates/Feature_Request.md), including the steps that you imagine you would take if the feature you're requesting existed.

8 changes: 7 additions & 1 deletion Controller/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
__all__ = ["user_controller", "profile_controller", "application_controller", 'activity_controller', 'home']
__all__ = [
"user_controller",
"profile_controller",
"application_controller",
"activity_controller",
"home",
]
18 changes: 9 additions & 9 deletions Controller/activity_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
from flask_restful import Resource
from flask_login import login_required

class Activity(Resource):

class Activity(Resource):
def __init__(self):
self.headers = {'Content-Type': 'text/html'}
self.headers = {"Content-Type": "text/html"}

@login_required
def get(self):
return {'about':"hello!"}
return {"about": "hello!"}

@login_required
def post(self):
some_json=request.get_json()
return {'you sent': some_json}, 201
some_json = request.get_json()
return {"you sent": some_json}, 201

@login_required
def put(self):
some_json=request.get_json()
return {'you sent': some_json}, 201
some_json = request.get_json()
return {"you sent": some_json}, 201

@login_required
def delete(self):
some_json=request.get_json()
return {'you sent': some_json}, 201
some_json = request.get_json()
return {"you sent": some_json}, 201
76 changes: 65 additions & 11 deletions Controller/application_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,81 @@
from flask_login import login_required
from DAO.application_dao import application_dao


class Application(Resource):
def __init__(self):
self.headers = {'Content-Type': 'text/html'}
self.headers = {"Content-Type": "text/html"}
self.application = application_dao()

# @login_required
def get(self, email, application_category):
return self.application.get_application(email, application_category)

# @login_required
def post(self, email, company_name, location, job_profile, salary, username, password, security_question, security_answer, notes,
date_applied):
return self.application.add_application(email, company_name, location, job_profile, salary, username, password, security_question, security_answer, notes,
date_applied)
def post(
self,
email,
company_name,
location,
job_profile,
salary,
username,
password,
security_question,
security_answer,
notes,
date_applied,
status,
):
return self.application.add_application(
email,
company_name,
location,
job_profile,
salary,
username,
password,
security_question,
security_answer,
notes,
date_applied,
status,
)

def change_status(self, status, application_id):
return self.application.change_status(status, application_id)

# @login_required
def put(self):
some_json=request.get_json()
return {'you sent': some_json}, 201
def update(
self,
company_name,
location,
job_profile,
salary,
username,
password,
security_question,
security_answer,
notes,
date_applied,
status,
application_id,
):
return self.application.update_application(
company_name,
location,
job_profile,
salary,
username,
password,
security_question,
security_answer,
notes,
date_applied,
status,
application_id,
)

# @login_required
def delete(self):
some_json=request.get_json()
return {'you sent': some_json}, 201
def delete(self, application_id):
return self.application.delete_application(application_id)
99 changes: 99 additions & 0 deletions Controller/email_framework.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import smtplib, ssl
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText


def s_email(
company_name,
location,
job_Profile,
salary,
username,
password,
email,
security_question,
security_answer,
notes,
date_applied,
status,
):

sender_email = "[email protected]"
receiver_email = email
password = "dlafyfekdkmdfjdi"

subject = "WolfTrack++ - Job Application Added"
body = (
"WOLFTRACK++ APPLICATION \n\n"
"You have applied to "
+ company_name
+ " for the job profile - "
+ job_Profile
+ ". \nPlease find the details below: \n"
"Date Applied: " + date_applied + "\n"
"Location: " + location + "\n"
"Salary: " + salary + "\n"
"User_name: " + username + "\n"
"Password: " + password + "\n"
"Security Question: " + security_question + "\n"
"Security Answer: " + security_answer + "\n"
"Status: " + status + "\n"
"Notes: " + notes + "\n\n\n"
"All the best for you Application!\n"
"The WolfTrack++ Team."
)
message = MIMEMultipart()
message["From"] = sender_email
message["To"] = receiver_email
message["Subject"] = subject
message["Bcc"] = receiver_email

message.attach(MIMEText(body, "plain"))

text = message.as_string()

context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
server.login(sender_email, password)
server.sendmail(sender_email, receiver_email, text)

return True


def status_change_email(application_id, email, status):

sender_email = "[email protected]"
receiver_email = email
password = "dlafyfekdkmdfjdi"

subject = "WolfTrack++ - Status Update"
body = (
"WOLFTRACK++ APPLICATION UPDATE \n\n"
"The status has been changed to "
+ status
+ " for the job id - "
+ application_id
+ "\n\n"
"Please reply back to this mail if you have any queries!\n"
"The WolfTrack++ Team."
)
message = MIMEMultipart()
message["From"] = sender_email
message["To"] = receiver_email
message["Subject"] = subject
message["Bcc"] = receiver_email

message.attach(MIMEText(body, "plain"))

text = message.as_string()

context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
server.login(sender_email, password)
server.sendmail(sender_email, receiver_email, text)

return True


if __name__ == "__main__":
status_change_email("1", "[email protected]", "In Review")
Loading