Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tom0827 committed Dec 29, 2023
1 parent 3c6b40d commit c5ecab3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion epictrack-api/src/api/schemas/response/project_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Meta(AutoSchemaBase.Meta):
model = Project
include_fk = True
unknown = EXCLUDE
exclude=("created_by", "updated_at", "updated_by", "is_deleted")
exclude = ("created_by", "updated_at", "updated_by", "is_deleted")

sub_type = fields.Nested(SubTypeSchema, dump_only=True, exclude=("type", "type_id"))
type = fields.Nested(TypeSchema, dump_only=True)
Expand Down
5 changes: 3 additions & 2 deletions epictrack-api/src/api/schemas/response/work_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ class Meta(AutoSchemaBase.Meta):
model = Work
include_fk = True
unknown = EXCLUDE
exclude=("created_by", "updated_at", "updated_by", "is_deleted")
exclude = ("created_by", "updated_at", "updated_by", "is_deleted")

project = fields.Nested(ProjectResponseSchema(exclude=("created_by", "updated_at", "updated_by", "is_deleted")), dump_only=True)
project = fields.Nested(
ProjectResponseSchema(exclude=("created_by", "updated_at", "updated_by", "is_deleted")), dump_only=True)
ministry = fields.Nested(MinistrySchema, dump_only=True)
eao_team = fields.Nested(EAOTeamSchema, dump_only=True)
ea_act = fields.Nested(EAActSchema, dump_only=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const WorkDetails = () => {
const [phaseInfo, setPhaseInfo] = useState<any>({});
const { work, workPhases } = useContext(WorkplanContext);

const getCurrentAndNextPhaseInfo = () => {
const getNextPhaseInfo = () => {
workPhases.map((phase) => {
if (phase?.work_phase?.id === work?.current_work_phase_id) {
setPhaseInfo(phase);
Expand All @@ -19,7 +19,7 @@ const WorkDetails = () => {
};

useEffect(() => {
getCurrentAndNextPhaseInfo();
getNextPhaseInfo();
}, []);

return (
Expand Down

0 comments on commit c5ecab3

Please sign in to comment.